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.0009565/0.0009564, allocations: 97.56 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.006201/0.006201, allocations: 168.6 kB / 16.26 MB, free: 6.652 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.475/1.475, allocations: 205.4 MB / 222.4 MB, free: 5.77 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.0004649/0.000465, allocations: 18.8 kB / 279.5 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2175, allocations: 47.57 MB / 327 MB, free: 1.195 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01228/0.2298, allocations: 13.35 MB / 340.4 MB, free: 5.891 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02494/0.2548, allocations: 19.6 MB / 360 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00235/0.2572, allocations: 31.81 kB / 360 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003841/0.261, allocations: 1.081 MB / 361.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009728/0.2708, allocations: 1.891 MB / 363 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005503/0.2763, allocations: 1.152 MB / 364.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0098/0.2861, allocations: 6.211 MB / 370.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007798/0.287, allocations: 441.5 kB / 370.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00133/0.2883, allocations: 0.9288 MB / 371.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.2894, allocations: 1.048 MB / 372.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001359/0.2896, allocations: 40 kB / 372.8 MB, free: 5.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003247/0.2928, allocations: 1.136 MB / 373.9 MB, free: 4.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002899/0.2931, allocations: 293.6 kB / 374.2 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001293/0.2944, allocations: 1.375 MB / 375.6 MB, free: 2.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004374/0.2988, allocations: 3.63 MB / 379.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2988, allocations: 0 / 379.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2989, allocations: 0 / 379.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.842e-05/0.2989, allocations: 0 / 379.2 MB, free: 14.86 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.004825/0.3038, allocations: 3.244 MB / 382.5 MB, free: 11.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.3038, allocations: 8.031 kB / 382.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004378/0.3043, allocations: 403.1 kB / 382.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003461/0.3078, allocations: 2.453 MB / 385.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.839e-05/0.3078, allocations: 40.94 kB / 385.3 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.308, allocations: 51.91 kB / 385.4 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.3094, allocations: 0.7538 MB / 386.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.3094, allocations: 0 / 386.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.576e-05/0.3095, allocations: 23.98 kB / 386.2 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/0.3095, allocations: 16 kB / 386.2 MB, free: 7.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.3112, allocations: 0.8632 MB / 387.1 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005257/0.3165, allocations: 3.092 MB / 390.1 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.3178, allocations: 0.6142 MB / 390.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.3188, allocations: 0.6711 MB / 391.4 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03028/0.3491, allocations: 30.22 MB / 421.6 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008968/0.3501, allocations: 389.6 kB / 422 MB, free: 15.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.905e-06/0.3501, allocations: 0 / 422 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002569/0.3527, allocations: 1.155 MB / 423.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.3527, allocations: 67.39 kB / 423.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003571/0.3563, allocations: 2.944 MB / 426.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.3564, allocations: 33.7 kB / 426.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.3576, allocations: 1.497 MB / 427.7 MB, free: 9.918 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.3578, allocations: 165.7 kB / 427.9 MB, free: 9.754 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.3579, allocations: 77.67 kB / 428 MB, free: 9.672 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.358, allocations: 341.9 kB / 428.3 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006249/0.3587, allocations: 261.9 kB / 428.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008305/0.3595, allocations: 0.6254 MB / 429.2 MB, free: 8.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.361, allocations: 0.9364 MB / 430.1 MB, free: 7.172 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.361, allocations: 4 kB / 430.1 MB, free: 7.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002233/0.3633, allocations: 1.28 MB / 431.4 MB, free: 5.879 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.3633, allocations: 12 kB / 431.4 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001098/0.3634, allocations: 87.92 kB / 431.5 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.3635, allocations: 20 kB / 431.5 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000724/0.3642, allocations: 207.7 kB / 431.7 MB, free: 5.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.273e-05/0.3642, allocations: 23.92 kB / 431.7 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009439/0.3652, allocations: 119 kB / 431.9 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.3653, allocations: 71.98 kB / 431.9 MB, free: 5.348 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.0008572/0.3662, allocations: 437.4 kB / 432.4 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003586/0.3665, allocations: 379.4 kB / 432.7 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003031/0.3696, allocations: 1.252 MB / 434 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.126e-06/0.3696, allocations: 4 kB / 434 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3696, allocations: 0 / 434 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.3696, allocations: 3.984 kB / 434 MB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003393/0.373, allocations: 2.136 MB / 436.1 MB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001024/0.3731, allocations: 76.05 kB / 436.2 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00052/0.3737, allocations: 103.9 kB / 436.3 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.145e-05/0.3737, allocations: 4 kB / 436.3 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.639e-05/0.3737, allocations: 35.94 kB / 436.3 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.3738, allocations: 8 kB / 436.3 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.3738, allocations: 0 / 436.3 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002468/0.3762, allocations: 1.364 MB / 437.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007578/0.377, allocations: 476.3 kB / 438.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.3773, allocations: 15.98 kB / 438.2 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006865/0.378, allocations: 40.03 kB / 438.2 MB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.3782, allocations: 59.94 kB / 438.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-05/0.3782, allocations: 39.94 kB / 438.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002904/0.3812, allocations: 1.916 MB / 440.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3812, allocations: 0 / 440.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001659/0.3828, allocations: 0.5933 MB / 440.8 MB, free: 12.29 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.001095/0.3839, allocations: 0.7766 MB / 441.6 MB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.3856, allocations: 0.8495 MB / 442.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.3857, allocations: 8 kB / 442.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007787/0.3864, allocations: 467.4 kB / 442.9 MB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/0.3886, allocations: 490.4 kB / 443.4 MB, free: 9.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006856/0.3955, allocations: 5.29 MB / 448.7 MB, free: 4.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.3966, allocations: 1.669 MB / 450.4 MB, free: 2.641 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001409/0.3981, allocations: 361.3 kB / 450.7 MB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/0.3983, allocations: 147.4 kB / 450.9 MB, free: 2.141 MB / 382.1 MB Notification: Performance of SimCode: time 1.723e-06/0.3983, allocations: 0 / 450.9 MB, free: 2.141 MB / 382.1 MB Notification: Performance of Templates: time 0.2147/0.613, allocations: 30.1 MB / 481 MB, free: 95.06 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)