Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.004536/0.004536, allocations: 104.4 kB / 15.74 MB, free: 6.441 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.001081/0.001081, allocations: 190.2 kB / 16.67 MB, free: 6.355 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.377/1.377, allocations: 205.1 MB / 222.6 MB, free: 4.469 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.001127/0.001127, allocations: 54.2 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.087/0.08813, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01271/0.1009, allocations: 14.02 MB / 387.2 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02277/0.1237, allocations: 19.73 MB / 406.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003037/0.1268, allocations: 91.25 kB / 407 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003325/0.1302, allocations: 1.201 MB / 408.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007187/0.1374, allocations: 2.262 MB / 410.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004345/0.1417, allocations: 1.389 MB / 411.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.152, allocations: 6.344 MB / 418.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000802/0.1528, allocations: 453.1 kB / 418.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.1543, allocations: 0.9874 MB / 419.6 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00109/0.1554, allocations: 1.087 MB / 420.7 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.1555, allocations: 76 kB / 420.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003529/0.1591, allocations: 1.159 MB / 422 MB, free: 300 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003328/0.1594, allocations: 333.6 kB / 422.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.1607, allocations: 1.374 MB / 423.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004719/0.1654, allocations: 3.794 MB / 427.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1654, allocations: 0 / 427.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1654, allocations: 4 kB / 427.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.029e-05/0.1655, allocations: 0 / 427.4 MB, free: 10.77 MB / 366.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.005077/0.1706, allocations: 3.689 MB / 431.1 MB, free: 7.004 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.1706, allocations: 8.031 kB / 431.1 MB, free: 6.996 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003972/0.171, allocations: 403.1 kB / 431.5 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003074/0.1741, allocations: 2.434 MB / 434 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.1741, allocations: 40.94 kB / 434 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.1743, allocations: 51.98 kB / 434.1 MB, free: 3.996 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.1756, allocations: 0.7343 MB / 434.8 MB, free: 3.254 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.1756, allocations: 3.938 kB / 434.8 MB, free: 3.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-05/0.1757, allocations: 19.98 kB / 434.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.1757, allocations: 19.98 kB / 434.8 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.1772, allocations: 0.8202 MB / 435.7 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004806/0.182, allocations: 3.075 MB / 438.7 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.1833, allocations: 0.5713 MB / 439.3 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009961/0.1843, allocations: 0.6399 MB / 439.9 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.21/0.3943, allocations: 30.17 MB / 470.1 MB, free: 59.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000771/0.3952, allocations: 361.5 kB / 470.5 MB, free: 59.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.126e-06/0.3952, allocations: 0 / 470.5 MB, free: 59.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002206/0.3974, allocations: 1.104 MB / 471.6 MB, free: 59.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.3974, allocations: 61.67 kB / 471.6 MB, free: 58.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003196/0.4006, allocations: 2.947 MB / 474.6 MB, free: 57.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.339e-05/0.4007, allocations: 36.64 kB / 474.6 MB, free: 57.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009073/0.4016, allocations: 1.503 MB / 476.1 MB, free: 56.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.4017, allocations: 166 kB / 476.3 MB, free: 55.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.402, allocations: 234.7 kB / 476.5 MB, free: 55.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.4021, allocations: 333.8 kB / 476.8 MB, free: 55.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005359/0.4026, allocations: 251.7 kB / 477.1 MB, free: 55.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006524/0.4033, allocations: 0.5969 MB / 477.7 MB, free: 54.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.4045, allocations: 0.8986 MB / 478.6 MB, free: 54.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.4045, allocations: 6.266 kB / 478.6 MB, free: 54.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001778/0.4063, allocations: 1.228 MB / 479.8 MB, free: 53.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.4063, allocations: 8.938 kB / 479.8 MB, free: 53.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.641e-05/0.4064, allocations: 82.47 kB / 479.9 MB, free: 53.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/0.4065, allocations: 23.66 kB / 479.9 MB, free: 53.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006804/0.4072, allocations: 200.3 kB / 480.1 MB, free: 53.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.087e-05/0.4072, allocations: 23.67 kB / 480.1 MB, free: 53.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008762/0.4081, allocations: 106.2 kB / 480.2 MB, free: 53.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.379e-05/0.4082, allocations: 62.53 kB / 480.3 MB, free: 53.41 MB / 382.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.0005444/0.4087, allocations: 446.8 kB / 480.7 MB, free: 53.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002513/0.409, allocations: 380.5 kB / 481.1 MB, free: 52.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002284/0.4113, allocations: 1.208 MB / 482.3 MB, free: 52.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.4113, allocations: 3.969 kB / 482.3 MB, free: 52.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4113, allocations: 7.328 kB / 482.3 MB, free: 52.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4113, allocations: 3.984 kB / 482.3 MB, free: 52.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.4141, allocations: 2.108 MB / 484.4 MB, free: 51.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.882e-05/0.4142, allocations: 67.34 kB / 484.5 MB, free: 51.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004749/0.4147, allocations: 97.53 kB / 484.6 MB, free: 50.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.237e-06/0.4147, allocations: 6.219 kB / 484.6 MB, free: 50.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.212e-05/0.4148, allocations: 27.31 kB / 484.6 MB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.4148, allocations: 8.531 kB / 484.7 MB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4148, allocations: 3.625 kB / 484.7 MB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.4167, allocations: 1.302 MB / 486 MB, free: 50.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006338/0.4174, allocations: 480.2 kB / 486.4 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002565/0.4176, allocations: 15.98 kB / 486.4 MB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006684/0.4183, allocations: 32.03 kB / 486.5 MB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.4184, allocations: 59.94 kB / 486.5 MB, free: 49.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.044e-05/0.4185, allocations: 36 kB / 486.6 MB, free: 49.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00175/0.4203, allocations: 1.921 MB / 488.5 MB, free: 47.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4203, allocations: 0 / 488.5 MB, free: 47.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001144/0.4214, allocations: 0.5894 MB / 489.1 MB, free: 46.95 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.0008578/0.4223, allocations: 0.7791 MB / 489.9 MB, free: 46.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.4236, allocations: 0.8063 MB / 490.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4236, allocations: 0 / 490.7 MB, free: 45.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006432/0.4243, allocations: 451.5 kB / 491.1 MB, free: 44.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.4258, allocations: 0.5184 MB / 491.6 MB, free: 44.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004183/0.4299, allocations: 4.324 MB / 495.9 MB, free: 40.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006798/0.4306, allocations: 1.669 MB / 497.6 MB, free: 38.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007554/0.4314, allocations: 364.2 kB / 498 MB, free: 38.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.4316, allocations: 147.4 kB / 498.1 MB, free: 37.95 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4316, allocations: 0 / 498.1 MB, free: 37.95 MB / 382.1 MB Notification: Performance of Templates: time 0.0405/0.4721, allocations: 31.37 MB / 0.5171 GB, free: 6.535 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)