Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 108.6 kB / 16.62 MB, free: 6.812 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.001383/0.001383, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.365/1.365, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001099/0.0011, allocations: 51.92 kB / 279.5 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.0875, allocations: 46.62 MB / 326.1 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01245/0.09998, allocations: 13.9 MB / 340 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02122/0.1212, allocations: 19.49 MB / 359.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002282/0.1236, allocations: 27.81 kB / 359.5 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003178/0.1268, allocations: 1.063 MB / 360.6 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007427/0.1342, allocations: 1.942 MB / 362.5 MB, free: 240 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005034/0.1393, allocations: 1.203 MB / 363.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009869/0.1492, allocations: 6.402 MB / 370.1 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009196/0.1502, allocations: 461.1 kB / 370.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.1518, allocations: 0.9834 MB / 371.6 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.1531, allocations: 1.083 MB / 372.7 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001662/0.1533, allocations: 76 kB / 372.7 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004184/0.1575, allocations: 1.156 MB / 373.9 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.1578, allocations: 337.6 kB / 374.2 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001338/0.1592, allocations: 1.382 MB / 375.6 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1653/0.3244, allocations: 3.744 MB / 379.4 MB, free: 24.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.3245, allocations: 1.844 kB / 379.4 MB, free: 24.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.3245, allocations: 1.375 kB / 379.4 MB, free: 24.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001718/0.3247, allocations: 2.812 kB / 379.4 MB, free: 24.21 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006536/0.3312, allocations: 3.707 MB / 383.1 MB, free: 22.15 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.3313, allocations: 8.75 kB / 383.1 MB, free: 22.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006061/0.3319, allocations: 398.9 kB / 383.5 MB, free: 21.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004204/0.3361, allocations: 2.454 MB / 385.9 MB, free: 21.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.3362, allocations: 39.48 kB / 386 MB, free: 21.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.3363, allocations: 53.41 kB / 386 MB, free: 21.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.3381, allocations: 0.7344 MB / 386.7 MB, free: 21.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.658e-05/0.3382, allocations: 4.109 kB / 386.7 MB, free: 21.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.993e-05/0.3382, allocations: 19.8 kB / 386.8 MB, free: 21.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.066e-05/0.3383, allocations: 19.41 kB / 386.8 MB, free: 21.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.34, allocations: 0.8187 MB / 387.6 MB, free: 21.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005759/0.3458, allocations: 3.064 MB / 390.7 MB, free: 20.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.347, allocations: 0.5775 MB / 391.2 MB, free: 20.53 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009427/0.3479, allocations: 0.6478 MB / 391.9 MB, free: 20.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02422/0.3722, allocations: 30.18 MB / 422.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007588/0.373, allocations: 368.9 kB / 422.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.945e-06/0.373, allocations: 0 / 422.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002319/0.3753, allocations: 1.096 MB / 423.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.3754, allocations: 59.41 kB / 423.6 MB, free: 9.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003489/0.3789, allocations: 2.952 MB / 426.5 MB, free: 6.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.061e-05/0.3789, allocations: 37.7 kB / 426.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/0.3802, allocations: 1.498 MB / 428.1 MB, free: 5.371 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.3804, allocations: 168.7 kB / 428.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002997/0.3807, allocations: 226.1 kB / 428.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3808, allocations: 345 kB / 428.8 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/0.3814, allocations: 237.9 kB / 429 MB, free: 4.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007828/0.3821, allocations: 0.5972 MB / 429.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.3836, allocations: 0.9021 MB / 430.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.3836, allocations: 4 kB / 430.5 MB, free: 2.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002114/0.3857, allocations: 1.234 MB / 431.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.3858, allocations: 13.97 kB / 431.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/0.3859, allocations: 80 kB / 431.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.3859, allocations: 24.69 kB / 431.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000708/0.3866, allocations: 200.4 kB / 432.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.435e-05/0.3867, allocations: 26.89 kB / 432.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.3879, allocations: 111 kB / 432.2 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.388, allocations: 66.81 kB / 432.3 MB, free: 0.9766 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006884/0.3887, allocations: 429.9 kB / 432.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004126/0.3891, allocations: 391.7 kB / 433.1 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002852/0.3919, allocations: 1.195 MB / 434.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.392, allocations: 5.531 kB / 434.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.392, allocations: 0 / 434.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.392, allocations: 4 kB / 434.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003459/0.3954, allocations: 2.101 MB / 436.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.905e-05/0.3956, allocations: 68 kB / 436.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000473/0.396, allocations: 94.92 kB / 436.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.3961, allocations: 64 / 436.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.799e-05/0.3961, allocations: 35.98 kB / 436.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.3961, allocations: 7.938 kB / 436.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3961, allocations: 3.938 kB / 436.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.3984, allocations: 1.304 MB / 437.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007492/0.3991, allocations: 481.9 kB / 438.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002987/0.3994, allocations: 12 kB / 438.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006501/0.4001, allocations: 32.02 kB / 438.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.4002, allocations: 59.95 kB / 438.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.481e-05/0.4003, allocations: 39.98 kB / 438.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002432/0.4028, allocations: 1.92 MB / 440.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4028, allocations: 0 / 440.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001533/0.4043, allocations: 0.5855 MB / 441 MB, free: 8.168 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001231/0.4056, allocations: 0.7936 MB / 441.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001821/0.4074, allocations: 0.8325 MB / 442.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4074, allocations: 0 / 442.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007896/0.4082, allocations: 446.7 kB / 443.1 MB, free: 6.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001853/0.4101, allocations: 0.5134 MB / 443.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006285/0.4164, allocations: 5.196 MB / 448.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/0.4174, allocations: 1.673 MB / 450.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.4186, allocations: 357.3 kB / 450.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.4189, allocations: 147.4 kB / 450.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4189, allocations: 0 / 450.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of Templates: time 0.05065/0.4695, allocations: 31.07 MB / 482 MB, free: 15.4 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)