Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.001942/0.001942, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.375/1.375, allocations: 205.1 MB / 223.4 MB, free: 12.37 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.001176/0.001176, allocations: 51.94 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07955/0.08073, allocations: 46.62 MB / 326.1 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01373/0.0945, allocations: 14.47 MB / 340.6 MB, free: 6.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02027/0.1148, allocations: 19.56 MB / 360.2 MB, free: 2.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00173/0.1166, allocations: 27.81 kB / 360.2 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002865/0.1195, allocations: 1.079 MB / 361.3 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007018/0.1265, allocations: 1.988 MB / 363.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00398/0.1306, allocations: 1.199 MB / 364.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009197/0.1398, allocations: 6.534 MB / 371 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000831/0.1406, allocations: 477.6 kB / 371.4 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001495/0.1421, allocations: 1.007 MB / 372.5 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/0.1432, allocations: 1.118 MB / 373.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001634/0.1434, allocations: 76 kB / 373.6 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003347/0.1467, allocations: 1.159 MB / 374.8 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003408/0.1471, allocations: 341.5 kB / 375.1 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001357/0.1485, allocations: 1.444 MB / 376.6 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1624/0.3109, allocations: 3.96 MB / 380.5 MB, free: 24.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3109, allocations: 0 / 380.5 MB, free: 24.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3109, allocations: 0 / 380.5 MB, free: 24.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001038/0.311, allocations: 4.219 kB / 380.5 MB, free: 24.3 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.006711/0.3177, allocations: 3.856 MB / 384.4 MB, free: 22.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3178, allocations: 8.938 kB / 384.4 MB, free: 22.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006654/0.3185, allocations: 415.8 kB / 384.8 MB, free: 21.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004209/0.3227, allocations: 2.5 MB / 387.3 MB, free: 21.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.3228, allocations: 43.7 kB / 387.4 MB, free: 21.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.3229, allocations: 52.53 kB / 387.4 MB, free: 21.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.3244, allocations: 0.7332 MB / 388.1 MB, free: 21.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.3244, allocations: 1.188 kB / 388.1 MB, free: 21.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.229e-05/0.3245, allocations: 17.81 kB / 388.2 MB, free: 21.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/0.3246, allocations: 21.67 kB / 388.2 MB, free: 21.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.3261, allocations: 0.8252 MB / 389 MB, free: 21.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005859/0.332, allocations: 3.106 MB / 392.1 MB, free: 20.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.3332, allocations: 0.5804 MB / 392.7 MB, free: 20.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009095/0.3341, allocations: 0.645 MB / 393.3 MB, free: 20.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02263/0.3568, allocations: 30.21 MB / 423.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007389/0.3575, allocations: 368.5 kB / 423.9 MB, free: 10 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.675e-06/0.3576, allocations: 0 / 423.9 MB, free: 10 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.00224/0.3598, allocations: 1.111 MB / 425 MB, free: 8.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.3599, allocations: 63.41 kB / 425.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003622/0.3635, allocations: 3.107 MB / 428.2 MB, free: 5.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.462e-05/0.3636, allocations: 33.7 kB / 428.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001275/0.3649, allocations: 1.578 MB / 429.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.365, allocations: 162.3 kB / 430 MB, free: 3.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002984/0.3653, allocations: 229 kB / 430.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3655, allocations: 345.9 kB / 430.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005556/0.366, allocations: 245.8 kB / 430.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000774/0.3668, allocations: 0.5962 MB / 431.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.3681, allocations: 0.9007 MB / 432.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3681, allocations: 4 kB / 432.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002255/0.3704, allocations: 1.246 MB / 433.5 MB, free: 148 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.3704, allocations: 12 kB / 433.5 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001033/0.3705, allocations: 80 kB / 433.6 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.816e-05/0.3706, allocations: 21.58 kB / 433.6 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007022/0.3713, allocations: 203 kB / 433.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.455e-05/0.3713, allocations: 34.39 kB / 433.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.3727, allocations: 103 kB / 434 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.3728, allocations: 68 kB / 434 MB, free: 15.66 MB / 350.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.0008287/0.3736, allocations: 450 kB / 434.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004638/0.3741, allocations: 401.7 kB / 434.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002834/0.3769, allocations: 1.221 MB / 436.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.377, allocations: 11.94 kB / 436.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.377, allocations: 0 / 436.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.377, allocations: 0 / 436.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003384/0.3804, allocations: 2.154 MB / 438.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-05/0.3805, allocations: 72 kB / 438.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004661/0.381, allocations: 95.14 kB / 438.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.381, allocations: 4 kB / 438.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.998e-05/0.381, allocations: 35.98 kB / 438.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.3811, allocations: 0 / 438.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3811, allocations: 1.859 kB / 438.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002174/0.3832, allocations: 1.331 MB / 439.8 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007777/0.384, allocations: 496 kB / 440.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/0.3844, allocations: 11.98 kB / 440.3 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006801/0.3851, allocations: 31.97 kB / 440.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.3852, allocations: 60.02 kB / 440.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.636e-05/0.3853, allocations: 39.98 kB / 440.4 MB, free: 9.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002439/0.3877, allocations: 2.019 MB / 442.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3878, allocations: 0 / 442.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001394/0.3892, allocations: 0.5973 MB / 443 MB, free: 6.598 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.001021/0.3902, allocations: 0.7868 MB / 443.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.3918, allocations: 0.8332 MB / 444.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3918, allocations: 0 / 444.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007078/0.3925, allocations: 449.1 kB / 445.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/0.3943, allocations: 0.5424 MB / 445.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007393/0.4017, allocations: 5.433 MB / 451 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.4028, allocations: 1.722 MB / 452.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001327/0.4042, allocations: 361.4 kB / 453.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.4044, allocations: 151.4 kB / 453.3 MB, free: 12.44 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4044, allocations: 0 / 453.3 MB, free: 12.44 MB / 366.1 MB Notification: Performance of Templates: time 0.05208/0.4565, allocations: 31.87 MB / 485.1 MB, free: 12.71 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)