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.00134/0.001341, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001494/0.001495, allocations: 193.8 kB / 16.14 MB, free: 6.672 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.422/1.422, allocations: 205.1 MB / 222 MB, free: 4.758 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.001099/0.001099, allocations: 55.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2031, allocations: 46.62 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01187/0.215, allocations: 13.9 MB / 338.6 MB, free: 6.234 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0218/0.2369, allocations: 19.87 MB / 358.4 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002199/0.2391, allocations: 35.81 kB / 358.5 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003054/0.2422, allocations: 1.049 MB / 359.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006433/0.2486, allocations: 1.899 MB / 361.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003695/0.2524, allocations: 1.152 MB / 362.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008738/0.2611, allocations: 6.207 MB / 368.8 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006187/0.2617, allocations: 441.6 kB / 369.2 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.2628, allocations: 0.9404 MB / 370.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008738/0.2637, allocations: 1.067 MB / 371.2 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001811/0.2639, allocations: 52 kB / 371.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003369/0.2673, allocations: 1.14 MB / 372.4 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003246/0.2676, allocations: 305.6 kB / 372.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.2688, allocations: 1.354 MB / 374.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003798/0.2726, allocations: 3.693 MB / 377.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2727, allocations: 0 / 377.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.2727, allocations: 4 kB / 377.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.647e-05/0.2727, allocations: 0 / 377.8 MB, free: 14.85 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.004872/0.2776, allocations: 3.705 MB / 381.5 MB, free: 11.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.2777, allocations: 8.031 kB / 381.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000391/0.2781, allocations: 399.1 kB / 381.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00315/0.2812, allocations: 2.453 MB / 384.3 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.2813, allocations: 40.94 kB / 384.4 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.2814, allocations: 55.89 kB / 384.4 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.2828, allocations: 0.7304 MB / 385.1 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.2828, allocations: 3.938 kB / 385.2 MB, free: 7.301 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.904e-05/0.2829, allocations: 20 kB / 385.2 MB, free: 7.281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.2829, allocations: 19.98 kB / 385.2 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.2844, allocations: 0.8202 MB / 386 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005118/0.2896, allocations: 3.072 MB / 389.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.2908, allocations: 0.5713 MB / 389.7 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.2918, allocations: 0.6438 MB / 390.3 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02827/0.3201, allocations: 30.19 MB / 420.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000726/0.3209, allocations: 365.6 kB / 420.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.464e-06/0.3209, allocations: 0 / 420.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002101/0.323, allocations: 1.093 MB / 421.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.323, allocations: 59.41 kB / 422 MB, free: 14.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003303/0.3264, allocations: 2.956 MB / 425 MB, free: 11.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.722e-05/0.3264, allocations: 41.69 kB / 425 MB, free: 11.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001151/0.3276, allocations: 1.49 MB / 426.5 MB, free: 9.695 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.3277, allocations: 165.6 kB / 426.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002799/0.328, allocations: 234.1 kB / 426.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.3281, allocations: 337.9 kB / 427.2 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005582/0.3287, allocations: 241.9 kB / 427.4 MB, free: 8.727 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007736/0.3295, allocations: 0.5981 MB / 428 MB, free: 7.957 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001326/0.3308, allocations: 0.8974 MB / 428.9 MB, free: 6.891 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.789e-06/0.3308, allocations: 4 kB / 428.9 MB, free: 6.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001967/0.3328, allocations: 1.241 MB / 430.2 MB, free: 5.633 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.3328, allocations: 8 kB / 430.2 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/0.333, allocations: 87.98 kB / 430.3 MB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.952e-05/0.333, allocations: 16 kB / 430.3 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007/0.3337, allocations: 212.3 kB / 430.5 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.294e-05/0.3338, allocations: 19.94 kB / 430.5 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008903/0.3346, allocations: 107.1 kB / 430.6 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.99e-05/0.3348, allocations: 64 kB / 430.7 MB, free: 5.129 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.0006753/0.3354, allocations: 437.4 kB / 431.1 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003272/0.3358, allocations: 387.3 kB / 431.5 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0028/0.3386, allocations: 1.198 MB / 432.7 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.3386, allocations: 11.98 kB / 432.7 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3386, allocations: 0 / 432.7 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3386, allocations: 3.984 kB / 432.7 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.3418, allocations: 2.097 MB / 434.8 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.916e-05/0.3419, allocations: 75.98 kB / 434.9 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004736/0.3423, allocations: 87.86 kB / 435 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.3424, allocations: 4 kB / 435 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.917e-05/0.3424, allocations: 36.06 kB / 435 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3424, allocations: 3.938 kB / 435 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.3424, allocations: 7.984 kB / 435 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.3446, allocations: 1.294 MB / 436.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006541/0.3453, allocations: 484.2 kB / 436.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002829/0.3456, allocations: 8 kB / 436.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006642/0.3463, allocations: 36.03 kB / 436.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.3464, allocations: 55.94 kB / 436.9 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.261e-05/0.3465, allocations: 39.94 kB / 436.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002376/0.3489, allocations: 1.927 MB / 438.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3489, allocations: 0 / 438.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001435/0.3503, allocations: 0.5816 MB / 439.4 MB, free: 12.24 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.001137/0.3515, allocations: 0.7806 MB / 440.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.3531, allocations: 0.8053 MB / 441 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3531, allocations: 1.312 kB / 441 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007539/0.3538, allocations: 455.3 kB / 441.5 MB, free: 10.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/0.3557, allocations: 490.4 kB / 441.9 MB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007074/0.3628, allocations: 5.197 MB / 447.1 MB, free: 4.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/0.3638, allocations: 1.673 MB / 448.8 MB, free: 2.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001266/0.3651, allocations: 357.3 kB / 449.2 MB, free: 2.375 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.3654, allocations: 151.4 kB / 449.3 MB, free: 2.227 MB / 382.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3654, allocations: 0 / 449.3 MB, free: 2.227 MB / 382.1 MB Notification: Performance of Templates: time 0.1913/0.5567, allocations: 30.21 MB / 479.5 MB, free: 95.84 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)