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.001397/0.001398, allocations: 109.5 kB / 16.51 MB, free: 6.715 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.001386/0.001386, allocations: 186.5 kB / 17.42 MB, free: 6.07 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 / 223.3 MB, free: 12.49 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.001838/0.001838, allocations: 55.92 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1048, allocations: 46.62 MB / 325.9 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0125/0.1173, allocations: 13.9 MB / 339.9 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0224/0.1398, allocations: 19.88 MB / 359.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003338/0.1432, allocations: 27.81 kB / 359.8 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00365/0.1469, allocations: 1.055 MB / 360.8 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007732/0.1546, allocations: 1.891 MB / 362.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004854/0.1595, allocations: 1.152 MB / 363.9 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01044/0.17, allocations: 6.207 MB / 370.1 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008223/0.1708, allocations: 445.5 kB / 370.5 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.1724, allocations: 0.9443 MB / 371.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009481/0.1733, allocations: 1.071 MB / 372.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.1735, allocations: 52 kB / 372.6 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00367/0.1772, allocations: 1.124 MB / 373.7 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003494/0.1775, allocations: 309.5 kB / 374 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.1789, allocations: 1.354 MB / 375.3 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1719/0.3508, allocations: 3.69 MB / 379 MB, free: 23.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3509, allocations: 0 / 379 MB, free: 23.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3509, allocations: 0 / 379 MB, free: 23.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001908/0.3511, allocations: 4.906 kB / 379 MB, free: 23.58 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.009043/0.3602, allocations: 3.707 MB / 382.7 MB, free: 21.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.3602, allocations: 11.66 kB / 382.8 MB, free: 21.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001068/0.3613, allocations: 396.1 kB / 383.1 MB, free: 21.35 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005336/0.3666, allocations: 2.452 MB / 385.6 MB, free: 20.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.784e-05/0.3667, allocations: 36.48 kB / 385.6 MB, free: 20.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002676/0.367, allocations: 54.48 kB / 385.7 MB, free: 20.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/0.3689, allocations: 0.7322 MB / 386.4 MB, free: 20.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.3689, allocations: 3.188 kB / 386.4 MB, free: 20.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.088e-05/0.369, allocations: 20.47 kB / 386.4 MB, free: 20.49 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.388e-05/0.369, allocations: 19.75 kB / 386.5 MB, free: 20.49 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001783/0.3708, allocations: 0.8147 MB / 387.3 MB, free: 20.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0068/0.3776, allocations: 3.068 MB / 390.3 MB, free: 19.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.3789, allocations: 0.5797 MB / 390.9 MB, free: 19.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.3799, allocations: 0.6507 MB / 391.6 MB, free: 19.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02493/0.4049, allocations: 30.18 MB / 421.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000787/0.4057, allocations: 368.3 kB / 422.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 3.988e-06/0.4057, allocations: 0 / 422.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002755/0.4085, allocations: 1.097 MB / 423.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.4085, allocations: 55.41 kB / 423.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005088/0.4136, allocations: 2.956 MB / 426.2 MB, free: 6.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.4138, allocations: 33.7 kB / 426.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001431/0.4152, allocations: 1.499 MB / 427.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/0.4155, allocations: 163.3 kB / 427.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003725/0.4158, allocations: 229.4 kB / 428.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.416, allocations: 341.9 kB / 428.5 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006651/0.4167, allocations: 245.8 kB / 428.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009286/0.4176, allocations: 0.5968 MB / 429.3 MB, free: 3.508 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.4192, allocations: 0.8993 MB / 430.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/0.4192, allocations: 7 kB / 430.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003302/0.4225, allocations: 1.23 MB / 431.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.715e-05/0.4226, allocations: 8 kB / 431.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001414/0.4227, allocations: 84 kB / 431.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.105e-05/0.4228, allocations: 19.94 kB / 431.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007937/0.4236, allocations: 201.8 kB / 431.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-05/0.4236, allocations: 31.73 kB / 431.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/0.4257, allocations: 103.1 kB / 431.9 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.4258, allocations: 64 kB / 431.9 MB, free: 0.8398 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.001007/0.4268, allocations: 436.8 kB / 432.4 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009127/0.4277, allocations: 387.1 kB / 432.8 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003337/0.4311, allocations: 1.21 MB / 434 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.4311, allocations: 4 kB / 434 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.4311, allocations: 0.6875 kB / 434 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.4311, allocations: 1.859 kB / 434 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00413/0.4353, allocations: 2.1 MB / 436.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.232e-05/0.4354, allocations: 72 kB / 436.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004857/0.4359, allocations: 93.11 kB / 436.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.279e-05/0.4359, allocations: 5.078 kB / 436.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-05/0.436, allocations: 38.39 kB / 436.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.436, allocations: 0 / 436.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.436, allocations: 7.188 kB / 436.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002469/0.4385, allocations: 1.297 MB / 437.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.4395, allocations: 484.2 kB / 438 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005862/0.4401, allocations: 8 kB / 438.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009179/0.4411, allocations: 31.95 kB / 438.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.4412, allocations: 64 kB / 438.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.391e-05/0.4413, allocations: 39.09 kB / 438.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002563/0.4439, allocations: 1.916 MB / 440.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4439, allocations: 0 / 440.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001604/0.4455, allocations: 0.5933 MB / 440.7 MB, free: 8.027 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.001178/0.4467, allocations: 0.7882 MB / 441.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.4483, allocations: 0.8113 MB / 442.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.4483, allocations: 0 / 442.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007607/0.4491, allocations: 447.5 kB / 442.7 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/0.4514, allocations: 492.6 kB / 443.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00693/0.4583, allocations: 5.205 MB / 448.4 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/0.4596, allocations: 1.669 MB / 450.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001256/0.4608, allocations: 363.1 kB / 450.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002429/0.4611, allocations: 151.4 kB / 450.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4611, allocations: 0 / 450.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of Templates: time 0.05236/0.5135, allocations: 30.2 MB / 480.8 MB, free: 144 kB / 382.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)