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.001038/0.001038, allocations: 90.19 kB / 16.65 MB, free: 6.59 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.001301/0.001301, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.441/1.441, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.000465/0.0004651, allocations: 12.47 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08755/0.08803, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01189/0.09996, allocations: 13.35 MB / 341.7 MB, free: 6.344 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0258/0.1258, allocations: 19.59 MB / 361.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002768/0.1286, allocations: 31.81 kB / 361.3 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003966/0.1326, allocations: 1.072 MB / 362.4 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00861/0.1413, allocations: 1.895 MB / 364.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006269/0.1476, allocations: 1.152 MB / 365.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01117/0.1588, allocations: 6.207 MB / 371.6 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.1599, allocations: 445.5 kB / 372.1 MB, free: 7.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001897/0.1618, allocations: 0.9287 MB / 373 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.163, allocations: 1.048 MB / 374 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001435/0.1632, allocations: 47.94 kB / 374.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004376/0.1675, allocations: 1.128 MB / 375.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003825/0.1679, allocations: 293.7 kB / 375.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001732/0.1697, allocations: 1.368 MB / 376.9 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1941/0.3638, allocations: 3.63 MB / 380.5 MB, free: 23.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3639, allocations: 0 / 380.5 MB, free: 23.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3639, allocations: 0 / 380.5 MB, free: 23.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001512/0.364, allocations: 5.094 kB / 380.5 MB, free: 23.95 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.006141/0.3702, allocations: 3.236 MB / 383.7 MB, free: 22.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.853e-05/0.3703, allocations: 9.344 kB / 383.7 MB, free: 22.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000942/0.3712, allocations: 399.2 kB / 384.1 MB, free: 21.87 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004485/0.3757, allocations: 2.453 MB / 386.6 MB, free: 21.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.909e-05/0.3758, allocations: 39.5 kB / 386.6 MB, free: 21.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.3759, allocations: 55.64 kB / 386.7 MB, free: 21.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.3776, allocations: 0.7489 MB / 387.4 MB, free: 21.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.3776, allocations: 0 / 387.4 MB, free: 21.01 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-05/0.3777, allocations: 22.47 kB / 387.4 MB, free: 21.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.349e-05/0.3778, allocations: 20.41 kB / 387.5 MB, free: 21.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.3795, allocations: 0.8649 MB / 388.3 MB, free: 21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00612/0.3856, allocations: 3.093 MB / 391.4 MB, free: 20.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.3869, allocations: 0.617 MB / 392 MB, free: 20.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.388, allocations: 0.664 MB / 392.7 MB, free: 20.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0247/0.4127, allocations: 30.22 MB / 422.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008076/0.4135, allocations: 381.7 kB / 423.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.4136, allocations: 0 / 423.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002799/0.4164, allocations: 1.161 MB / 424.5 MB, free: 9.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.4164, allocations: 60.72 kB / 424.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003987/0.4204, allocations: 2.96 MB / 427.5 MB, free: 6.711 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.4206, allocations: 33.7 kB / 427.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001288/0.4219, allocations: 1.494 MB / 429 MB, free: 5.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001977/0.4221, allocations: 167.8 kB / 429.2 MB, free: 5.012 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.4222, allocations: 73.67 kB / 429.2 MB, free: 4.934 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.4223, allocations: 337.9 kB / 429.6 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006291/0.4229, allocations: 265.9 kB / 429.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008868/0.4238, allocations: 0.6234 MB / 430.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.4254, allocations: 0.9383 MB / 431.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.4254, allocations: 4 kB / 431.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002552/0.428, allocations: 1.274 MB / 432.7 MB, free: 1.285 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.428, allocations: 12 kB / 432.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/0.4281, allocations: 84.61 kB / 432.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.157e-05/0.4282, allocations: 19.94 kB / 432.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007362/0.4289, allocations: 213.9 kB / 433 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.34e-05/0.4289, allocations: 25.16 kB / 433 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.4309, allocations: 125.4 kB / 433.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.431, allocations: 60 kB / 433.2 MB, free: 0.7773 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.0009933/0.432, allocations: 434.1 kB / 433.6 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004977/0.4325, allocations: 383.5 kB / 434 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00304/0.4356, allocations: 1.249 MB / 435.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.4356, allocations: 11.98 kB / 435.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4356, allocations: 0 / 435.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4356, allocations: 4 kB / 435.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00359/0.4392, allocations: 2.133 MB / 437.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.325e-05/0.4394, allocations: 75.98 kB / 437.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000511/0.4399, allocations: 103.5 kB / 437.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.318e-06/0.4399, allocations: 4.703 kB / 437.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.44, allocations: 31.98 kB / 437.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.44, allocations: 7.562 kB / 437.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.44, allocations: 0 / 437.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002556/0.4425, allocations: 1.365 MB / 439 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.4437, allocations: 476.2 kB / 439.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003269/0.4441, allocations: 16 kB / 439.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007284/0.4448, allocations: 39.95 kB / 439.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.445, allocations: 63.14 kB / 439.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.297e-05/0.4451, allocations: 43.48 kB / 439.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002793/0.4479, allocations: 1.926 MB / 441.5 MB, free: 8.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4479, allocations: 0 / 441.5 MB, free: 8.375 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001556/0.4494, allocations: 0.5855 MB / 442.1 MB, free: 7.789 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.001122/0.4506, allocations: 0.7732 MB / 442.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.4523, allocations: 0.8502 MB / 443.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4523, allocations: 0 / 443.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007658/0.4531, allocations: 472.2 kB / 444.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002218/0.4553, allocations: 492.5 kB / 444.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00686/0.4622, allocations: 5.28 MB / 450 MB, free: 72 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001195/0.4634, allocations: 1.677 MB / 451.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001372/0.4648, allocations: 361.3 kB / 452 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/0.465, allocations: 151.4 kB / 452.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of SimCode: time 1.011e-06/0.465, allocations: 0 / 452.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of Templates: time 0.0558/0.5209, allocations: 30.11 MB / 482.2 MB, free: 15.84 MB / 398.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)