Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006463/0.006463, allocations: 102.3 kB / 15.73 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 195.2 kB / 16.68 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 52.36 kB / 326.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08624/0.08744, allocations: 46.61 MB / 373.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.1986/0.286, allocations: 7.713 MB / 380.9 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01753/0.3036, allocations: 18.52 MB / 399.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009757/0.3046, allocations: 63.56 kB / 399.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002289/0.307, allocations: 0.8351 MB / 400.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01071/0.3177, allocations: 1.783 MB / 402.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006303/0.324, allocations: 1.297 MB / 403.4 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006591/0.3306, allocations: 3.178 MB / 406.5 MB, free: 8.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004617/0.3311, allocations: 227.3 kB / 406.8 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.3322, allocations: 0.5178 MB / 407.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007452/0.333, allocations: 0.5459 MB / 407.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.3331, allocations: 40.5 kB / 407.9 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006224/0.3393, allocations: 1.134 MB / 409 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004633/0.3398, allocations: 171.8 kB / 409.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001363/0.3412, allocations: 0.6825 MB / 409.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006643/0.3478, allocations: 2.232 MB / 412.1 MB, free: 6.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3479, allocations: 4 kB / 412.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3479, allocations: 0 / 412.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.008e-05/0.3479, allocations: 1.531 kB / 412.1 MB, free: 6.066 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003569/0.3515, allocations: 2.011 MB / 414.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.3516, allocations: 13.44 kB / 414.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002639/0.3519, allocations: 193.2 kB / 414.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.3538, allocations: 1.364 MB / 415.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.3538, allocations: 20.09 kB / 415.7 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.552e-05/0.3539, allocations: 24.53 kB / 415.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000863/0.3548, allocations: 436.8 kB / 416.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3548, allocations: 4 kB / 416.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.074e-05/0.3549, allocations: 10.59 kB / 416.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.3549, allocations: 18.94 kB / 416.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.3559, allocations: 470 kB / 416.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002793/0.3587, allocations: 1.622 MB / 418.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008838/0.3596, allocations: 376.7 kB / 418.6 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007056/0.3603, allocations: 410.2 kB / 419 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01626/0.3766, allocations: 15.23 MB / 434.2 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006198/0.3773, allocations: 263 kB / 434.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.735e-06/0.3773, allocations: 0 / 434.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002256/0.3796, allocations: 0.8368 MB / 435.3 MB, free: 15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.3796, allocations: 59.39 kB / 435.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002215/0.3818, allocations: 1.46 MB / 436.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.122e-05/0.3819, allocations: 37.69 kB / 436.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006145/0.3825, allocations: 0.7188 MB / 437.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.3826, allocations: 94.73 kB / 437.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002042/0.3828, allocations: 126 kB / 437.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.383, allocations: 326 kB / 438.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004423/0.3834, allocations: 161 kB / 438.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005524/0.384, allocations: 359.4 kB / 438.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.3851, allocations: 0.5449 MB / 439.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.3851, allocations: 0 / 439.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001578/0.3867, allocations: 0.7516 MB / 440 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.3867, allocations: 8 kB / 440 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.404e-05/0.3868, allocations: 44.84 kB / 440 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000345/0.3871, allocations: 136.8 kB / 440.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004222/0.3876, allocations: 107.8 kB / 440.2 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006359/0.3882, allocations: 0.685 MB / 440.9 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008436/0.3891, allocations: 71.47 kB / 441 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.179e-05/0.3891, allocations: 42.88 kB / 441 MB, free: 9.008 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004014/0.3896, allocations: 269.7 kB / 441.3 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002999/0.3899, allocations: 185.8 kB / 441.5 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.3917, allocations: 0.7539 MB / 442.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.3917, allocations: 4 kB / 442.2 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3917, allocations: 4 kB / 442.2 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3917, allocations: 0 / 442.2 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002593/0.3943, allocations: 1.319 MB / 443.6 MB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.701e-05/0.3944, allocations: 39.98 kB / 443.6 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.3947, allocations: 39.95 kB / 443.6 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002597/0.3949, allocations: 128.8 kB / 443.8 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-05/0.395, allocations: 23.98 kB / 443.8 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000615/0.3956, allocations: 0.6669 MB / 444.5 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.3956, allocations: 7.969 kB / 444.5 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.397, allocations: 0.7122 MB / 445.2 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000708/0.3978, allocations: 290.6 kB / 445.5 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003432/0.3981, allocations: 11.98 kB / 445.5 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005455/0.3987, allocations: 19.97 kB / 445.5 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.3988, allocations: 47.89 kB / 445.5 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.242e-05/0.3989, allocations: 20 kB / 445.6 MB, free: 4.316 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00131/0.4002, allocations: 0.9653 MB / 446.5 MB, free: 3.332 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4002, allocations: 0 / 446.5 MB, free: 3.332 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001131/0.4013, allocations: 331.8 kB / 446.8 MB, free: 3.008 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001041/0.4024, allocations: 0.5732 MB / 447.4 MB, free: 2.426 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.4037, allocations: 0.52 MB / 447.9 MB, free: 1.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4037, allocations: 0 / 447.9 MB, free: 1.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000665/0.4044, allocations: 291.2 kB / 448.2 MB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.4056, allocations: 260.3 kB / 448.5 MB, free: 1.344 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004102/0.4097, allocations: 2.21 MB / 450.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008366/0.4106, allocations: 1.157 MB / 451.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005677/0.4112, allocations: 199.9 kB / 452 MB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.4113, allocations: 91.44 kB / 452.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4113, allocations: 0 / 452.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of Templates: time 0.03656/0.4479, allocations: 19.89 MB / 472 MB, free: 9.707 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)