Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,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.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,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.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002172/0.002172, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2589, allocations: 50.54 MB / 409.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01339/0.2723, allocations: 14.7 MB / 423.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02239/0.2948, allocations: 20.71 MB / 444.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002394/0.2972, allocations: 87.25 kB / 444.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003244/0.3005, allocations: 1.245 MB / 446 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007006/0.3075, allocations: 2.325 MB / 448.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004285/0.3118, allocations: 1.443 MB / 449.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009519/0.3213, allocations: 6.563 MB / 456.3 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000756/0.3221, allocations: 457.1 kB / 456.8 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.3237, allocations: 1.108 MB / 457.9 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001195/0.3249, allocations: 1.11 MB / 459 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.3251, allocations: 76 kB / 459 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003816/0.3289, allocations: 1.475 MB / 460.5 MB, free: 14.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000329/0.3293, allocations: 329.6 kB / 460.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001358/0.3306, allocations: 1.37 MB / 462.2 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005481/0.3361, allocations: 3.771 MB / 466 MB, free: 8.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3362, allocations: 3.938 kB / 466 MB, free: 8.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3362, allocations: 0 / 466 MB, free: 8.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.978e-05/0.3362, allocations: 4 kB / 466 MB, free: 8.562 MB / 382.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.004846/0.3411, allocations: 3.674 MB / 469.7 MB, free: 4.809 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3411, allocations: 8.031 kB / 469.7 MB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003716/0.3415, allocations: 395.2 kB / 470.1 MB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003076/0.3446, allocations: 2.421 MB / 472.5 MB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.227e-05/0.3446, allocations: 40.98 kB / 472.5 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.3448, allocations: 56 kB / 472.6 MB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.346, allocations: 0.7226 MB / 473.3 MB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3461, allocations: 0 / 473.3 MB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.565e-05/0.3461, allocations: 20 kB / 473.3 MB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.3461, allocations: 19.98 kB / 473.3 MB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.3476, allocations: 0.8163 MB / 474.2 MB, free: 240 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004672/0.3523, allocations: 3.055 MB / 477.2 MB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.3535, allocations: 0.5829 MB / 477.8 MB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009681/0.3545, allocations: 0.6515 MB / 478.4 MB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02781/0.3823, allocations: 30.74 MB / 0.4973 GB, free: 8.852 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006834/0.383, allocations: 365.6 kB / 0.4976 GB, free: 8.484 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.374e-06/0.383, allocations: 4 kB / 0.4976 GB, free: 8.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002101/0.3851, allocations: 1.093 MB / 0.4987 GB, free: 7.375 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.3851, allocations: 55.41 kB / 0.4987 GB, free: 7.309 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003273/0.3884, allocations: 2.931 MB / 0.5016 GB, free: 4.367 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.743e-05/0.3885, allocations: 37.7 kB / 0.5016 GB, free: 4.324 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001131/0.3896, allocations: 1.486 MB / 0.5031 GB, free: 2.828 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.3898, allocations: 165.7 kB / 0.5032 GB, free: 2.664 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002816/0.3901, allocations: 226.1 kB / 0.5034 GB, free: 2.438 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3902, allocations: 341.9 kB / 0.5038 GB, free: 2.098 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005492/0.3908, allocations: 241.9 kB / 0.504 GB, free: 1.863 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007591/0.3915, allocations: 0.602 MB / 0.5046 GB, free: 1.082 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.3928, allocations: 0.8974 MB / 0.5055 GB, free: 12 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.3929, allocations: 7.938 kB / 0.5055 GB, free: 4 kB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0021/0.395, allocations: 1.23 MB / 0.5067 GB, free: 14.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.395, allocations: 14.91 kB / 0.5067 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-05/0.3951, allocations: 83.98 kB / 0.5068 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.523e-05/0.3952, allocations: 20 kB / 0.5068 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000664/0.3958, allocations: 199.7 kB / 0.507 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.233e-05/0.3959, allocations: 23.88 kB / 0.507 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009176/0.3968, allocations: 119 kB / 0.5071 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.742e-05/0.3969, allocations: 64 kB / 0.5072 GB, free: 14.26 MB / 446.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.0006697/0.3976, allocations: 433.4 kB / 0.5076 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003337/0.3979, allocations: 375.4 kB / 0.5079 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002442/0.4004, allocations: 1.201 MB / 0.5091 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.4004, allocations: 4 kB / 0.5091 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4004, allocations: 0 / 0.5091 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4004, allocations: 3.984 kB / 0.5091 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002987/0.4034, allocations: 2.096 MB / 0.5112 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-05/0.4035, allocations: 68 kB / 0.5112 GB, free: 9.996 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004484/0.4039, allocations: 99.86 kB / 0.5113 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.404, allocations: 4 kB / 0.5113 GB, free: 9.895 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-05/0.404, allocations: 35.98 kB / 0.5114 GB, free: 9.859 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.404, allocations: 4 kB / 0.5114 GB, free: 9.855 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.404, allocations: 0 / 0.5114 GB, free: 9.855 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.4061, allocations: 1.297 MB / 0.5126 GB, free: 8.527 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006183/0.4067, allocations: 480.4 kB / 0.5131 GB, free: 8.035 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.407, allocations: 8 kB / 0.5131 GB, free: 8.027 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006388/0.4076, allocations: 31.95 kB / 0.5131 GB, free: 7.996 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.4078, allocations: 59.89 kB / 0.5132 GB, free: 7.938 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.767e-05/0.4079, allocations: 39.98 kB / 0.5132 GB, free: 7.898 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002164/0.41, allocations: 1.907 MB / 0.5151 GB, free: 5.992 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.41, allocations: 0 / 0.5151 GB, free: 5.992 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001261/0.4113, allocations: 0.5816 MB / 0.5157 GB, free: 5.41 MB / 446.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.001004/0.4123, allocations: 0.7739 MB / 0.5164 GB, free: 4.629 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.4138, allocations: 0.806 MB / 0.5172 GB, free: 3.797 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4138, allocations: 256 / 0.5172 GB, free: 3.797 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007058/0.4145, allocations: 443 kB / 0.5176 GB, free: 3.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/0.4167, allocations: 0.6229 MB / 0.5182 GB, free: 2.711 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005458/0.4221, allocations: 4.3 MB / 0.5224 GB, free: 14.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.4232, allocations: 1.661 MB / 0.5241 GB, free: 12.69 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008986/0.4241, allocations: 357.1 kB / 0.5244 GB, free: 12.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.4243, allocations: 147.4 kB / 0.5245 GB, free: 12.19 MB / 462.1 MB Notification: Performance of SimCode: time 4.4e-07/0.4243, allocations: 0 / 0.5245 GB, free: 12.19 MB / 462.1 MB Notification: Performance of Templates: time 0.2576/0.6819, allocations: 31.35 MB / 0.5552 GB, free: 119.6 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)