Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.0009638/0.0009637, allocations: 96.62 kB / 15.36 MB, free: 0.7344 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.007253/0.007253, allocations: 169.8 kB / 16.27 MB, free: 6.648 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.384/1.384, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.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.0007269/0.0007269, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.238, allocations: 47.57 MB / 327 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01241/0.2505, allocations: 13.36 MB / 340.4 MB, free: 5.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02441/0.2749, allocations: 19.59 MB / 360 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002199/0.2772, allocations: 31.81 kB / 360 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003108/0.2803, allocations: 1.085 MB / 361.1 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008366/0.2887, allocations: 1.887 MB / 363 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005291/0.294, allocations: 1.156 MB / 364.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009397/0.3034, allocations: 6.211 MB / 370.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007063/0.3041, allocations: 433.6 kB / 370.8 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001199/0.3054, allocations: 0.9287 MB / 371.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.3064, allocations: 1.052 MB / 372.7 MB, free: 5.453 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.3066, allocations: 40 kB / 372.8 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003512/0.3101, allocations: 1.136 MB / 373.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002875/0.3104, allocations: 297.6 kB / 374.2 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001288/0.3117, allocations: 1.372 MB / 375.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004597/0.3163, allocations: 3.63 MB / 379.2 MB, free: 14.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.3163, allocations: 0 / 379.2 MB, free: 14.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3163, allocations: 0 / 379.2 MB, free: 14.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.789e-05/0.3164, allocations: 0 / 379.2 MB, free: 14.95 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.00477/0.3211, allocations: 3.244 MB / 382.5 MB, free: 11.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.3212, allocations: 8.031 kB / 382.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003806/0.3216, allocations: 399.1 kB / 382.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003098/0.3247, allocations: 2.453 MB / 385.3 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.973e-05/0.3247, allocations: 40.94 kB / 385.3 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.3249, allocations: 51.91 kB / 385.4 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.3262, allocations: 0.7538 MB / 386.1 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.3263, allocations: 0 / 386.1 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.358e-05/0.3263, allocations: 20 kB / 386.2 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.3264, allocations: 19.98 kB / 386.2 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.328, allocations: 0.8593 MB / 387 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004832/0.3328, allocations: 3.092 MB / 390.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.3341, allocations: 0.6298 MB / 390.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.3351, allocations: 0.668 MB / 391.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02821/0.3634, allocations: 30.22 MB / 421.7 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007929/0.3642, allocations: 393.5 kB / 422 MB, free: 15.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.725e-06/0.3642, allocations: 0 / 422 MB, free: 15.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002345/0.3665, allocations: 1.151 MB / 423.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.3666, allocations: 67.39 kB / 423.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003335/0.3699, allocations: 2.944 MB / 426.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.612e-05/0.37, allocations: 33.7 kB / 426.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/0.3712, allocations: 1.497 MB / 427.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.3714, allocations: 165.7 kB / 427.9 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.3715, allocations: 77.67 kB / 428 MB, free: 9.762 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3716, allocations: 341.9 kB / 428.3 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006167/0.3723, allocations: 265.8 kB / 428.6 MB, free: 9.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008273/0.3731, allocations: 0.6216 MB / 429.2 MB, free: 8.371 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.3746, allocations: 0.9403 MB / 430.1 MB, free: 7.258 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.3746, allocations: 4 kB / 430.1 MB, free: 7.254 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00219/0.3768, allocations: 1.28 MB / 431.4 MB, free: 5.965 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.3769, allocations: 12 kB / 431.4 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.377, allocations: 87.92 kB / 431.5 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.86e-05/0.377, allocations: 20 kB / 431.5 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007402/0.3778, allocations: 207.8 kB / 431.7 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.435e-05/0.3778, allocations: 23.88 kB / 431.7 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009612/0.3788, allocations: 123 kB / 431.9 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.3789, allocations: 68 kB / 431.9 MB, free: 5.434 MB / 366.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.0008033/0.3797, allocations: 437.4 kB / 432.4 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003435/0.38, allocations: 383.4 kB / 432.7 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003023/0.3831, allocations: 1.241 MB / 434 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.3831, allocations: 7.984 kB / 434 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3831, allocations: 0 / 434 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3831, allocations: 0 / 434 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003372/0.3865, allocations: 2.136 MB / 436.1 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.152e-05/0.3866, allocations: 76.05 kB / 436.2 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004833/0.3871, allocations: 103.9 kB / 436.3 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.3871, allocations: 0 / 436.3 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.754e-05/0.3872, allocations: 39.92 kB / 436.3 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3872, allocations: 8 kB / 436.3 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3872, allocations: 3.938 kB / 436.3 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/0.3895, allocations: 1.368 MB / 437.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006136/0.3901, allocations: 476.3 kB / 438.2 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.3904, allocations: 12 kB / 438.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006634/0.391, allocations: 44.02 kB / 438.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.3912, allocations: 55.95 kB / 438.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-05/0.3913, allocations: 43.92 kB / 438.3 MB, free: 14.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002313/0.3936, allocations: 1.916 MB / 440.2 MB, free: 12.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3936, allocations: 0 / 440.2 MB, free: 12.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001321/0.3949, allocations: 0.5894 MB / 440.8 MB, free: 12.38 MB / 382.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.001064/0.396, allocations: 0.7844 MB / 441.6 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.3976, allocations: 0.8455 MB / 442.5 MB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3977, allocations: 4.125 kB / 442.5 MB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007733/0.3984, allocations: 471.4 kB / 442.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/0.4004, allocations: 486.5 kB / 443.4 MB, free: 9.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006593/0.407, allocations: 5.294 MB / 448.7 MB, free: 4.422 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/0.4081, allocations: 1.669 MB / 450.4 MB, free: 2.727 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001297/0.4094, allocations: 357.3 kB / 450.7 MB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.4097, allocations: 147.4 kB / 450.9 MB, free: 2.23 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4097, allocations: 0 / 450.9 MB, free: 2.23 MB / 382.1 MB Notification: Performance of Templates: time 0.2096/0.6192, allocations: 30.11 MB / 481 MB, free: 95.25 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)