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.001127/0.001127, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 57.19 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08229/0.08345, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1517/0.2351, allocations: 15.3 MB / 374.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01877/0.2539, allocations: 20.79 MB / 395 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001862/0.2558, allocations: 90.5 kB / 395.1 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003093/0.259, allocations: 1.258 MB / 396.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007281/0.2663, allocations: 2.343 MB / 398.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00475/0.271, allocations: 1.448 MB / 400.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01017/0.2812, allocations: 6.684 MB / 406.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007422/0.282, allocations: 474.6 kB / 407.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.2837, allocations: 1.112 MB / 408.4 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.285, allocations: 1.152 MB / 409.5 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.2851, allocations: 75.72 kB / 409.6 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004473/0.2896, allocations: 1.476 MB / 411.1 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003633/0.29, allocations: 333.5 kB / 411.4 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001415/0.2914, allocations: 1.432 MB / 412.8 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004709/0.2961, allocations: 3.981 MB / 416.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.2962, allocations: 0 / 416.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2962, allocations: 0 / 416.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.602e-05/0.2962, allocations: 4 kB / 416.8 MB, free: 0.8945 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.005393/0.3016, allocations: 3.818 MB / 420.6 MB, free: 13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3017, allocations: 8.031 kB / 420.7 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004005/0.3021, allocations: 410.9 kB / 421.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003249/0.3054, allocations: 2.479 MB / 423.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.629e-05/0.3054, allocations: 37 kB / 423.6 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.3055, allocations: 51.91 kB / 423.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.3068, allocations: 0.7265 MB / 424.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.3069, allocations: 4 kB / 424.4 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.576e-05/0.3069, allocations: 27.92 kB / 424.4 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.556e-05/0.307, allocations: 16 kB / 424.4 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.3085, allocations: 0.8202 MB / 425.2 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004867/0.3133, allocations: 3.091 MB / 428.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.3145, allocations: 0.5682 MB / 428.9 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009397/0.3154, allocations: 0.6532 MB / 429.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0297/0.3452, allocations: 30.77 MB / 460.3 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007201/0.3459, allocations: 364.7 kB / 460.7 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.475e-06/0.3459, allocations: 0 / 460.7 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002112/0.348, allocations: 1.112 MB / 461.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.3481, allocations: 59.41 kB / 461.8 MB, free: 15.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003359/0.3515, allocations: 3.094 MB / 464.9 MB, free: 12.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.061e-05/0.3515, allocations: 33.7 kB / 464.9 MB, free: 12.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/0.3528, allocations: 1.573 MB / 466.5 MB, free: 10.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.3529, allocations: 177.6 kB / 466.7 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.3532, allocations: 222.2 kB / 466.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.3533, allocations: 337.9 kB / 467.2 MB, free: 9.902 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000553/0.3539, allocations: 245.9 kB / 467.5 MB, free: 9.664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007904/0.3547, allocations: 0.602 MB / 468.1 MB, free: 8.883 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.356, allocations: 0.8935 MB / 469 MB, free: 7.816 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.3561, allocations: 7.938 kB / 469 MB, free: 7.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001899/0.358, allocations: 1.249 MB / 470.2 MB, free: 6.551 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.358, allocations: 8 kB / 470.2 MB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/0.3581, allocations: 83.98 kB / 470.3 MB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.3582, allocations: 24.06 kB / 470.3 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006841/0.3588, allocations: 199.6 kB / 470.5 MB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.115e-05/0.3589, allocations: 23.94 kB / 470.6 MB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008738/0.3598, allocations: 111.1 kB / 470.7 MB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.961e-05/0.3599, allocations: 60 kB / 470.7 MB, free: 6.051 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.0006092/0.3605, allocations: 461.3 kB / 471.2 MB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003291/0.3608, allocations: 399.1 kB / 471.6 MB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002432/0.3633, allocations: 1.212 MB / 472.8 MB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.3633, allocations: 8 kB / 472.8 MB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3633, allocations: 0 / 472.8 MB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/0.3633, allocations: 7.984 kB / 472.8 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003243/0.3665, allocations: 2.146 MB / 474.9 MB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-05/0.3666, allocations: 68 kB / 475 MB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004623/0.3671, allocations: 87.92 kB / 475.1 MB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.3671, allocations: 4 kB / 475.1 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.057e-05/0.3672, allocations: 36.05 kB / 475.1 MB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.3672, allocations: 7.938 kB / 475.1 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3672, allocations: 0 / 475.1 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.3693, allocations: 1.317 MB / 476.5 MB, free: 200 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008592/0.3702, allocations: 494.4 kB / 476.9 MB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003099/0.3705, allocations: 15.98 kB / 477 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000693/0.3712, allocations: 28.03 kB / 477 MB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.3714, allocations: 63.89 kB / 477.1 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.202e-05/0.3714, allocations: 39.98 kB / 477.1 MB, free: 15.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002451/0.3739, allocations: 2.01 MB / 479.1 MB, free: 13.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3739, allocations: 0 / 479.1 MB, free: 13.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001259/0.3752, allocations: 0.5973 MB / 479.7 MB, free: 12.95 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.001066/0.3763, allocations: 0.7757 MB / 480.5 MB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.3778, allocations: 0.8051 MB / 481.3 MB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3778, allocations: 1.25 kB / 481.3 MB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000744/0.3786, allocations: 447.1 kB / 481.7 MB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002379/0.381, allocations: 0.6451 MB / 482.4 MB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006059/0.387, allocations: 4.492 MB / 486.9 MB, free: 5.695 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/0.3882, allocations: 1.71 MB / 488.6 MB, free: 3.957 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009193/0.3891, allocations: 365.3 kB / 488.9 MB, free: 3.594 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.3894, allocations: 151.4 kB / 489.1 MB, free: 3.445 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3894, allocations: 0 / 489.1 MB, free: 3.445 MB / 398.1 MB Notification: Performance of Templates: time 0.05108/0.4405, allocations: 32.05 MB / 0.5089 GB, free: 3.551 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 gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)