Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00102/0.00102, allocations: 119.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.8 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1018, allocations: 50.53 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2/0.3019, allocations: 15.3 MB / 374.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02338/0.3253, allocations: 20.8 MB / 395 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002909/0.3282, allocations: 89.88 kB / 395.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003967/0.3323, allocations: 1.249 MB / 396.3 MB, free: 14.72 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009521/0.3418, allocations: 2.352 MB / 398.7 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007364/0.3492, allocations: 1.439 MB / 400.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01377/0.363, allocations: 6.692 MB / 406.8 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009749/0.3641, allocations: 466.9 kB / 407.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.3662, allocations: 1.123 MB / 408.4 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001838/0.368, allocations: 1.141 MB / 409.5 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001924/0.3682, allocations: 76.97 kB / 409.6 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005111/0.3734, allocations: 1.477 MB / 411.1 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004182/0.3738, allocations: 329.5 kB / 411.4 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001593/0.3754, allocations: 1.436 MB / 412.8 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00518/0.3806, allocations: 3.985 MB / 416.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3806, allocations: 0 / 416.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.368e-06/0.3806, allocations: 0 / 416.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.017e-05/0.3807, allocations: 7.922 kB / 416.8 MB, free: 0.8789 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.005314/0.386, allocations: 3.818 MB / 420.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.386, allocations: 8.031 kB / 420.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003984/0.3865, allocations: 414.9 kB / 421.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003346/0.3898, allocations: 2.465 MB / 423.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/0.3899, allocations: 37 kB / 423.6 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.39, allocations: 63.83 kB / 423.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.3912, allocations: 0.7265 MB / 424.4 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.3913, allocations: 0 / 424.4 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.43e-05/0.3913, allocations: 20 kB / 424.4 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.3914, allocations: 19.98 kB / 424.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.3929, allocations: 0.8163 MB / 425.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00501/0.3979, allocations: 3.091 MB / 428.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.399, allocations: 0.579 MB / 428.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000939/0.4, allocations: 0.646 MB / 429.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03089/0.4309, allocations: 30.78 MB / 460.3 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007154/0.4316, allocations: 353.7 kB / 460.7 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/0.4316, allocations: 4 kB / 460.7 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002099/0.4337, allocations: 1.108 MB / 461.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.4338, allocations: 67.38 kB / 461.8 MB, free: 15.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003533/0.4373, allocations: 3.087 MB / 464.9 MB, free: 12.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.4374, allocations: 33.7 kB / 465 MB, free: 12.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001242/0.4387, allocations: 1.569 MB / 466.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.4388, allocations: 177.6 kB / 466.7 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002867/0.4391, allocations: 230.1 kB / 466.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.4392, allocations: 334 kB / 467.2 MB, free: 9.895 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005508/0.4398, allocations: 249.8 kB / 467.5 MB, free: 9.652 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007545/0.4406, allocations: 0.599 MB / 468.1 MB, free: 8.875 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/0.4419, allocations: 0.9013 MB / 469 MB, free: 7.801 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.442, allocations: 11.88 kB / 469 MB, free: 7.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001971/0.4439, allocations: 1.234 MB / 470.2 MB, free: 6.547 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.444, allocations: 16 kB / 470.3 MB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.964e-05/0.4441, allocations: 80 kB / 470.3 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.4441, allocations: 16 kB / 470.3 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007006/0.4448, allocations: 203.6 kB / 470.5 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.139e-05/0.4448, allocations: 23.92 kB / 470.6 MB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009165/0.4458, allocations: 112.2 kB / 470.7 MB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.4459, allocations: 60 kB / 470.7 MB, free: 6.047 MB / 382.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.0006372/0.4465, allocations: 465.3 kB / 471.2 MB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003325/0.4469, allocations: 395.1 kB / 471.6 MB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002489/0.4494, allocations: 1.221 MB / 472.8 MB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.4494, allocations: 8 kB / 472.8 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.4494, allocations: 0 / 472.8 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.4494, allocations: 0 / 472.8 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003229/0.4526, allocations: 2.143 MB / 474.9 MB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.96e-05/0.4527, allocations: 75.98 kB / 475 MB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004624/0.4532, allocations: 99.92 kB / 475.1 MB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.4532, allocations: 0 / 475.1 MB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.563e-05/0.4533, allocations: 28 kB / 475.1 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.4533, allocations: 7.984 kB / 475.2 MB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4533, allocations: 0 / 475.2 MB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.4554, allocations: 1.325 MB / 476.5 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008372/0.4562, allocations: 492.2 kB / 477 MB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002855/0.4565, allocations: 16.06 kB / 477 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000702/0.4573, allocations: 31.95 kB / 477 MB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.4574, allocations: 59.89 kB / 477.1 MB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.149e-05/0.4575, allocations: 39.98 kB / 477.1 MB, free: 15.53 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002358/0.4599, allocations: 2.003 MB / 479.1 MB, free: 13.53 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4599, allocations: 0 / 479.1 MB, free: 13.53 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001241/0.4611, allocations: 0.5973 MB / 479.7 MB, free: 12.93 MB / 398.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.001045/0.4622, allocations: 0.7739 MB / 480.5 MB, free: 12.15 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.4637, allocations: 0.8101 MB / 481.3 MB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.4637, allocations: 0 / 481.3 MB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007147/0.4644, allocations: 451 kB / 481.7 MB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002259/0.4667, allocations: 0.6472 MB / 482.4 MB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005931/0.4726, allocations: 4.484 MB / 486.9 MB, free: 5.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/0.4738, allocations: 1.71 MB / 488.6 MB, free: 3.941 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.4749, allocations: 365.3 kB / 488.9 MB, free: 3.578 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.4751, allocations: 147.4 kB / 489.1 MB, free: 3.434 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4751, allocations: 0 / 489.1 MB, free: 3.434 MB / 398.1 MB Notification: Performance of Templates: time 0.05402/0.5291, allocations: 32.04 MB / 0.5089 GB, free: 3.539 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)