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.0009768/0.0009768, allocations: 92.34 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.001217/0.001217, allocations: 184.5 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.437/1.437, 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.0004781/0.000478, allocations: 15.98 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09599/0.09648, allocations: 47.59 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01173/0.1082, allocations: 13.92 MB / 342.2 MB, free: 5.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0256/0.1339, allocations: 19.65 MB / 361.9 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005082/0.139, allocations: 31.81 kB / 361.9 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006671/0.1458, allocations: 1.099 MB / 363 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01354/0.1594, allocations: 1.934 MB / 365 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008434/0.1679, allocations: 1.152 MB / 366.1 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01826/0.1862, allocations: 6.335 MB / 372.4 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001579/0.1878, allocations: 442.1 kB / 372.9 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002733/0.1906, allocations: 0.9637 MB / 373.8 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002758/0.1934, allocations: 1.083 MB / 374.9 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000471/0.1939, allocations: 47.98 kB / 375 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008178/0.2021, allocations: 1.128 MB / 376.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000886/0.203, allocations: 309.4 kB / 376.4 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003371/0.2064, allocations: 1.426 MB / 377.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1759/0.3824, allocations: 3.842 MB / 381.7 MB, free: 23.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3824, allocations: 0 / 381.7 MB, free: 23.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.3824, allocations: 2.344 kB / 381.7 MB, free: 23.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001344/0.3826, allocations: 0 / 381.7 MB, free: 23.29 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.007305/0.3899, allocations: 3.357 MB / 385 MB, free: 21.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.39, allocations: 10.41 kB / 385 MB, free: 21.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007892/0.3908, allocations: 414.5 kB / 385.4 MB, free: 21.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004155/0.3949, allocations: 2.506 MB / 387.9 MB, free: 20.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.395, allocations: 38.38 kB / 388 MB, free: 20.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.3952, allocations: 57.06 kB / 388 MB, free: 20.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.3967, allocations: 0.7582 MB / 388.8 MB, free: 20.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.3967, allocations: 0 / 388.8 MB, free: 20.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.233e-05/0.3968, allocations: 18.28 kB / 388.8 MB, free: 20.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.825e-05/0.3968, allocations: 20.23 kB / 388.8 MB, free: 20.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.3986, allocations: 0.8611 MB / 389.7 MB, free: 20.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006246/0.4049, allocations: 3.133 MB / 392.8 MB, free: 19.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.4062, allocations: 0.6213 MB / 393.4 MB, free: 19.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009954/0.4072, allocations: 0.672 MB / 394.1 MB, free: 19.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0247/0.4319, allocations: 30.23 MB / 424.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008068/0.4328, allocations: 386.1 kB / 424.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.474e-06/0.4328, allocations: 0 / 424.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002758/0.4355, allocations: 1.176 MB / 425.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.4356, allocations: 66.48 kB / 426 MB, free: 8.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004414/0.44, allocations: 3.101 MB / 429.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.4402, allocations: 41.7 kB / 429.1 MB, free: 5.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001393/0.4416, allocations: 1.577 MB / 430.7 MB, free: 3.812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/0.4418, allocations: 163.8 kB / 430.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.4419, allocations: 77.52 kB / 430.9 MB, free: 3.578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.4421, allocations: 341.9 kB / 431.3 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006789/0.4428, allocations: 261.9 kB / 431.5 MB, free: 2.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008888/0.4437, allocations: 0.6237 MB / 432.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/0.4452, allocations: 0.9377 MB / 433.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.4452, allocations: 4 kB / 433.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002564/0.4478, allocations: 1.297 MB / 434.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.4478, allocations: 12 kB / 434.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/0.448, allocations: 83.98 kB / 434.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.448, allocations: 19.94 kB / 434.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007278/0.4487, allocations: 217 kB / 434.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.028e-05/0.4488, allocations: 19.38 kB / 434.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.4503, allocations: 129.3 kB / 434.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.4504, allocations: 68.7 kB / 434.9 MB, free: 15.39 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.001206/0.4517, allocations: 445.9 kB / 435.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005784/0.4522, allocations: 399.1 kB / 435.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00317/0.4554, allocations: 1.267 MB / 437 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.4554, allocations: 4 kB / 437 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4555, allocations: 0 / 437 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4555, allocations: 3.984 kB / 437 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004087/0.4596, allocations: 2.193 MB / 439.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.138e-05/0.4597, allocations: 75.92 kB / 439.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004949/0.4602, allocations: 106.7 kB / 439.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.796e-06/0.4602, allocations: 4 kB / 439.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.996e-05/0.4603, allocations: 32 kB / 439.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.4603, allocations: 0 / 439.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.4603, allocations: 7.984 kB / 439.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/0.4629, allocations: 1.385 MB / 440.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.4639, allocations: 500 kB / 441.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003158/0.4642, allocations: 10.36 kB / 441.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007038/0.465, allocations: 43.95 kB / 441.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.4652, allocations: 55.95 kB / 441.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.4653, allocations: 42.11 kB / 441.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003666/0.469, allocations: 2.019 MB / 443.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.469, allocations: 6.812 kB / 443.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001569/0.4706, allocations: 0.5934 MB / 444.1 MB, free: 6.168 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.001275/0.4718, allocations: 0.779 MB / 444.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.4736, allocations: 0.856 MB / 445.7 MB, free: 4.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4736, allocations: 0 / 445.7 MB, free: 4.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007606/0.4744, allocations: 465.6 kB / 446.2 MB, free: 4.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002366/0.4768, allocations: 0.5049 MB / 446.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007006/0.4838, allocations: 5.523 MB / 452.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001113/0.485, allocations: 1.722 MB / 453.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001328/0.4863, allocations: 361.4 kB / 454.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.4865, allocations: 151.4 kB / 454.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of SimCode: time 1.984e-06/0.4865, allocations: 0 / 454.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of Templates: time 0.05451/0.541, allocations: 30.89 MB / 485.3 MB, free: 13.12 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)