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.001525/0.001525, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001835/0.001835, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.364/1.364, allocations: 205.1 MB / 222.1 MB, free: 4.684 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.001142/0.001142, allocations: 51.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2106, allocations: 46.63 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0126/0.2233, allocations: 13.9 MB / 338.7 MB, free: 6.164 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02132/0.2447, allocations: 19.48 MB / 358.2 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002808/0.2475, allocations: 31.81 kB / 358.3 MB, free: 2.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003308/0.2509, allocations: 1.06 MB / 359.3 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008711/0.2596, allocations: 1.95 MB / 361.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004642/0.2643, allocations: 1.207 MB / 362.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.2752, allocations: 6.402 MB / 368.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009847/0.2763, allocations: 457.2 kB / 369.3 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00157/0.2779, allocations: 0.9834 MB / 370.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001078/0.2789, allocations: 1.079 MB / 371.4 MB, free: 5.367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001788/0.2791, allocations: 76 kB / 371.5 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003546/0.2827, allocations: 1.163 MB / 372.6 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003801/0.2831, allocations: 337.5 kB / 372.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.2846, allocations: 1.393 MB / 374.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004795/0.2894, allocations: 3.743 MB / 378.1 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.2894, allocations: 4 kB / 378.1 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2894, allocations: 3.938 kB / 378.1 MB, free: 14.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.804e-05/0.2895, allocations: 0 / 378.1 MB, free: 14.62 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.004934/0.2944, allocations: 3.697 MB / 381.8 MB, free: 10.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.2945, allocations: 8.031 kB / 381.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004107/0.2949, allocations: 399.1 kB / 382.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003368/0.2983, allocations: 2.457 MB / 384.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.2983, allocations: 44.88 kB / 384.7 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.2985, allocations: 55.91 kB / 384.7 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.2998, allocations: 0.7304 MB / 385.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.2998, allocations: 7.984 kB / 385.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.546e-05/0.2999, allocations: 20 kB / 385.5 MB, free: 7.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.012e-05/0.2999, allocations: 19.98 kB / 385.5 MB, free: 7.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.3015, allocations: 0.8163 MB / 386.3 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005057/0.3065, allocations: 3.069 MB / 389.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.3077, allocations: 0.5712 MB / 390 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009378/0.3087, allocations: 0.6406 MB / 390.6 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02876/0.3374, allocations: 30.19 MB / 420.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007583/0.3382, allocations: 365.7 kB / 421.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.855e-06/0.3382, allocations: 0 / 421.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002279/0.3405, allocations: 1.093 MB / 422.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.3406, allocations: 63.39 kB / 422.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003517/0.3441, allocations: 2.956 MB / 425.3 MB, free: 11.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.337e-05/0.3442, allocations: 37.7 kB / 425.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.3454, allocations: 1.494 MB / 426.8 MB, free: 9.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.3456, allocations: 169.6 kB / 427 MB, free: 9.312 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002987/0.3459, allocations: 226.1 kB / 427.2 MB, free: 9.086 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.3461, allocations: 341.9 kB / 427.5 MB, free: 8.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005652/0.3466, allocations: 245.8 kB / 427.8 MB, free: 8.508 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007494/0.3474, allocations: 0.5981 MB / 428.4 MB, free: 7.734 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.3487, allocations: 0.8935 MB / 429.3 MB, free: 6.672 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.3487, allocations: 4 kB / 429.3 MB, free: 6.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00218/0.3509, allocations: 1.23 MB / 430.5 MB, free: 5.426 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.351, allocations: 12 kB / 430.5 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001112/0.3511, allocations: 80 kB / 430.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/0.3511, allocations: 20.03 kB / 430.6 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007083/0.3518, allocations: 199.6 kB / 430.8 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.461e-05/0.3519, allocations: 31.8 kB / 430.8 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009624/0.3528, allocations: 111 kB / 430.9 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.353, allocations: 68 kB / 431 MB, free: 4.914 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.0007399/0.3537, allocations: 433.5 kB / 431.4 MB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003923/0.3541, allocations: 387.3 kB / 431.8 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002927/0.3571, allocations: 1.198 MB / 433 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.3571, allocations: 7.984 kB / 433 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.3571, allocations: 4 kB / 433 MB, free: 2.883 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3571, allocations: 3.984 kB / 433 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003338/0.3605, allocations: 2.101 MB / 435.1 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.239e-05/0.3606, allocations: 68 kB / 435.2 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004939/0.3611, allocations: 95.92 kB / 435.3 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.397e-06/0.3611, allocations: 7.984 kB / 435.3 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.702e-05/0.3611, allocations: 28 kB / 435.3 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.952e-06/0.3612, allocations: 4 kB / 435.3 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3612, allocations: 0 / 435.3 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.3634, allocations: 1.313 MB / 436.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006982/0.3641, allocations: 484.2 kB / 437.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000295/0.3644, allocations: 15.98 kB / 437.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006509/0.365, allocations: 27.97 kB / 437.1 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.3652, allocations: 55.95 kB / 437.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-05/0.3653, allocations: 43.92 kB / 437.2 MB, free: 14.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002297/0.3676, allocations: 1.92 MB / 439.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3676, allocations: 3.938 kB / 439.2 MB, free: 12.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001247/0.3689, allocations: 0.5934 MB / 439.8 MB, free: 12.01 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.001164/0.37, allocations: 0.7728 MB / 440.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.3717, allocations: 0.83 MB / 441.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.3717, allocations: 4.062 kB / 441.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007275/0.3725, allocations: 451.2 kB / 441.8 MB, free: 9.902 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/0.3744, allocations: 0.5103 MB / 442.3 MB, free: 9.387 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00642/0.3808, allocations: 5.196 MB / 447.5 MB, free: 4.156 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.3819, allocations: 1.673 MB / 449.2 MB, free: 2.457 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001287/0.3832, allocations: 357.3 kB / 449.5 MB, free: 2.102 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.3835, allocations: 155.4 kB / 449.7 MB, free: 1.949 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3835, allocations: 0 / 449.7 MB, free: 1.949 MB / 382.1 MB Notification: Performance of Templates: time 0.1884/0.5718, allocations: 31.05 MB / 480.7 MB, free: 95.24 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)