Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001291/0.001291, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.414/1.414, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 63.89 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2354, allocations: 50.53 MB / 410.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01553/0.251, allocations: 14.76 MB / 425 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02662/0.2776, allocations: 20.76 MB / 445.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002871/0.2804, allocations: 91.25 kB / 445.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003734/0.2842, allocations: 1.24 MB / 447 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007996/0.2922, allocations: 2.325 MB / 449.4 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004795/0.297, allocations: 1.447 MB / 450.8 MB, free: 8.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01055/0.3075, allocations: 6.575 MB / 457.4 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006842/0.3082, allocations: 277.2 kB / 457.7 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001668/0.3099, allocations: 1.108 MB / 458.8 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.3112, allocations: 1.11 MB / 459.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001946/0.3114, allocations: 76 kB / 460 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003852/0.3153, allocations: 1.479 MB / 461.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003508/0.3156, allocations: 329.5 kB / 461.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001487/0.3171, allocations: 1.362 MB / 463.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005566/0.3227, allocations: 3.799 MB / 466.9 MB, free: 8.453 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.3227, allocations: 0 / 466.9 MB, free: 8.453 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3227, allocations: 0 / 466.9 MB, free: 8.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.442e-05/0.3227, allocations: 3.938 kB / 466.9 MB, free: 8.449 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.005796/0.3285, allocations: 3.805 MB / 470.7 MB, free: 4.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3286, allocations: 16.03 kB / 470.7 MB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004572/0.329, allocations: 413.4 kB / 471.1 MB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003555/0.3326, allocations: 2.449 MB / 473.6 MB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.3326, allocations: 37 kB / 473.6 MB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.3328, allocations: 51.98 kB / 473.7 MB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.3342, allocations: 0.7226 MB / 474.4 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.3342, allocations: 4 kB / 474.4 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.633e-05/0.3343, allocations: 20 kB / 474.4 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.3343, allocations: 23.98 kB / 474.4 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.336, allocations: 0.8163 MB / 475.3 MB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005565/0.3416, allocations: 3.067 MB / 478.3 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.3428, allocations: 0.5088 MB / 478.8 MB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009846/0.3438, allocations: 0.5657 MB / 479.4 MB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03402/0.3778, allocations: 30.74 MB / 0.4982 GB, free: 8.703 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007945/0.3786, allocations: 369.6 kB / 0.4985 GB, free: 8.332 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.485e-06/0.3786, allocations: 0 / 0.4985 GB, free: 8.332 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002483/0.3811, allocations: 1.11 MB / 0.4996 GB, free: 7.215 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.3811, allocations: 59.41 kB / 0.4997 GB, free: 7.145 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003812/0.3849, allocations: 2.935 MB / 0.5026 GB, free: 4.199 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.86e-05/0.385, allocations: 37.7 kB / 0.5026 GB, free: 4.156 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001406/0.3864, allocations: 1.495 MB / 0.504 GB, free: 2.652 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.3866, allocations: 174.6 kB / 0.5042 GB, free: 2.48 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003085/0.3869, allocations: 234.3 kB / 0.5044 GB, free: 2.246 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.387, allocations: 345.9 kB / 0.5048 GB, free: 1.902 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006104/0.3877, allocations: 237.9 kB / 0.505 GB, free: 1.672 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000897/0.3886, allocations: 0.5981 MB / 0.5056 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.3901, allocations: 0.8974 MB / 0.5065 GB, free: 15.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.3901, allocations: 7.938 kB / 0.5065 GB, free: 15.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002344/0.3925, allocations: 1.243 MB / 0.5077 GB, free: 14.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3925, allocations: 12 kB / 0.5077 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001285/0.3926, allocations: 87.92 kB / 0.5078 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.965e-05/0.3926, allocations: 16 kB / 0.5078 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007367/0.3934, allocations: 200.3 kB / 0.508 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.877e-05/0.3934, allocations: 27.92 kB / 0.508 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009705/0.3944, allocations: 119.3 kB / 0.5081 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.3945, allocations: 67.98 kB / 0.5082 GB, free: 14.05 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.0007456/0.3952, allocations: 438.4 kB / 0.5086 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004226/0.3957, allocations: 401.5 kB / 0.509 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002673/0.3983, allocations: 1.19 MB / 0.5101 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.3983, allocations: 4 kB / 0.5102 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.3983, allocations: 0 / 0.5102 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3984, allocations: 3.984 kB / 0.5102 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003515/0.4019, allocations: 2.096 MB / 0.5122 GB, free: 9.836 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000107/0.402, allocations: 68 kB / 0.5123 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004989/0.4025, allocations: 95.86 kB / 0.5124 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.4025, allocations: 3.938 kB / 0.5124 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-05/0.4025, allocations: 39.92 kB / 0.5124 GB, free: 9.633 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.4025, allocations: 4 kB / 0.5124 GB, free: 9.629 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4025, allocations: 3.938 kB / 0.5124 GB, free: 9.625 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.4049, allocations: 1.311 MB / 0.5137 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007973/0.4057, allocations: 494.4 kB / 0.5142 GB, free: 7.781 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002583/0.406, allocations: 12 kB / 0.5142 GB, free: 7.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006631/0.4066, allocations: 27.95 kB / 0.5142 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.4068, allocations: 67.95 kB / 0.5143 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.046e-05/0.4069, allocations: 39.98 kB / 0.5143 GB, free: 7.637 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002519/0.4094, allocations: 1.903 MB / 0.5162 GB, free: 5.734 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4094, allocations: 0 / 0.5162 GB, free: 5.734 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001345/0.4107, allocations: 0.5891 MB / 0.5167 GB, free: 5.145 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.001148/0.4119, allocations: 0.7768 MB / 0.5175 GB, free: 4.359 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.4135, allocations: 0.771 MB / 0.5182 GB, free: 3.562 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4135, allocations: 0 / 0.5182 GB, free: 3.562 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000794/0.4143, allocations: 423 kB / 0.5186 GB, free: 3.125 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/0.4168, allocations: 0.6192 MB / 0.5193 GB, free: 2.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006305/0.4231, allocations: 4.395 MB / 0.5235 GB, free: 14.06 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.4244, allocations: 1.665 MB / 0.5252 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009604/0.4253, allocations: 361.1 kB / 0.5255 GB, free: 12.01 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.4256, allocations: 151.4 kB / 0.5257 GB, free: 11.86 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4256, allocations: 8 kB / 0.5257 GB, free: 11.86 MB / 462.1 MB Notification: Performance of Templates: time 0.2206/0.6462, allocations: 31.48 MB / 0.5564 GB, free: 119 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)