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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=500,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=500,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00191/0.00191, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002065/0.002065, allocations: 207.2 kB / 19.79 MB, free: 2.586 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.545/1.545, allocations: 230.5 MB / 251.1 MB, free: 8.461 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.001943/0.001943, allocations: 71.83 kB / 368.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2524, allocations: 53.31 MB / 422.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01571/0.2681, allocations: 14.76 MB / 437 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02549/0.2936, allocations: 20.77 MB / 457.8 MB, free: 4.168 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002138/0.2958, allocations: 87.25 kB / 457.9 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003189/0.299, allocations: 1.24 MB / 459.1 MB, free: 2.836 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00724/0.3062, allocations: 2.357 MB / 461.5 MB, free: 472 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004562/0.3108, allocations: 1.456 MB / 462.9 MB, free: 15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01047/0.3212, allocations: 6.59 MB / 469.5 MB, free: 8.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006513/0.3219, allocations: 269.2 kB / 469.8 MB, free: 8.098 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.3235, allocations: 1.104 MB / 470.9 MB, free: 6.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001435/0.325, allocations: 1.114 MB / 472 MB, free: 5.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.3251, allocations: 79.98 kB / 472.1 MB, free: 5.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004099/0.3292, allocations: 1.475 MB / 473.5 MB, free: 4.312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003425/0.3296, allocations: 325.7 kB / 473.9 MB, free: 3.992 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00147/0.331, allocations: 1.378 MB / 475.2 MB, free: 2.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005649/0.3367, allocations: 3.791 MB / 479 MB, free: 14.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3367, allocations: 0 / 479 MB, free: 14.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3367, allocations: 4 kB / 479 MB, free: 14.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.679e-05/0.3368, allocations: 0 / 479 MB, free: 14.79 MB / 398.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.005736/0.3425, allocations: 3.798 MB / 482.8 MB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3425, allocations: 12.03 kB / 482.8 MB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004709/0.343, allocations: 409.4 kB / 483.2 MB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003515/0.3465, allocations: 2.457 MB / 485.7 MB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.445e-05/0.3466, allocations: 37 kB / 485.7 MB, free: 7.938 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.3467, allocations: 55.98 kB / 485.8 MB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.3481, allocations: 0.7265 MB / 486.5 MB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.3481, allocations: 3.938 kB / 486.5 MB, free: 7.145 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.902e-05/0.3482, allocations: 16 kB / 486.5 MB, free: 7.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.845e-05/0.3482, allocations: 27.97 kB / 486.6 MB, free: 7.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.3498, allocations: 0.8124 MB / 487.4 MB, free: 6.289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005214/0.355, allocations: 3.071 MB / 490.5 MB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.3562, allocations: 0.5088 MB / 491 MB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009984/0.3572, allocations: 0.5735 MB / 491.5 MB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03281/0.39, allocations: 30.76 MB / 0.51 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007973/0.3908, allocations: 365.7 kB / 0.5104 GB, free: 14.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 2.234e-06/0.3908, allocations: 0 / 0.5104 GB, free: 14.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.002396/0.3932, allocations: 1.103 MB / 0.5115 GB, free: 13.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.3933, allocations: 63.39 kB / 0.5115 GB, free: 13.47 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004152/0.3974, allocations: 2.935 MB / 0.5144 GB, free: 10.53 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.3975, allocations: 41.64 kB / 0.5144 GB, free: 10.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001667/0.3992, allocations: 1.495 MB / 0.5159 GB, free: 8.977 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000245/0.3995, allocations: 174.6 kB / 0.5161 GB, free: 8.805 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003292/0.3998, allocations: 230.4 kB / 0.5163 GB, free: 8.574 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.4, allocations: 342 kB / 0.5166 GB, free: 8.234 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006649/0.4006, allocations: 241.8 kB / 0.5168 GB, free: 8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008872/0.4015, allocations: 0.5942 MB / 0.5174 GB, free: 7.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001547/0.4031, allocations: 0.9013 MB / 0.5183 GB, free: 6.156 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.4031, allocations: 7.938 kB / 0.5183 GB, free: 6.148 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002644/0.4057, allocations: 1.243 MB / 0.5195 GB, free: 4.898 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.4057, allocations: 12 kB / 0.5195 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/0.4059, allocations: 80 kB / 0.5196 GB, free: 4.809 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.242e-05/0.4059, allocations: 16 kB / 0.5196 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007186/0.4066, allocations: 207.6 kB / 0.5198 GB, free: 4.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.217e-05/0.4066, allocations: 28.2 kB / 0.5199 GB, free: 4.562 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.4077, allocations: 111.3 kB / 0.52 GB, free: 4.453 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.4078, allocations: 68 kB / 0.52 GB, free: 4.387 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.0008773/0.4087, allocations: 433.4 kB / 0.5204 GB, free: 3.953 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004912/0.4092, allocations: 401.5 kB / 0.5208 GB, free: 3.559 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002759/0.4119, allocations: 1.182 MB / 0.522 GB, free: 2.363 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.412, allocations: 11.94 kB / 0.522 GB, free: 2.352 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.412, allocations: 0 / 0.522 GB, free: 2.352 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.412, allocations: 0 / 0.522 GB, free: 2.352 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003644/0.4156, allocations: 2.1 MB / 0.524 GB, free: 184 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00011/0.4157, allocations: 71.98 kB / 0.5241 GB, free: 112 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004958/0.4162, allocations: 95.97 kB / 0.5242 GB, free: 16 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.4162, allocations: 4 kB / 0.5242 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-05/0.4163, allocations: 40 kB / 0.5242 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.772e-06/0.4163, allocations: 4 kB / 0.5242 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4163, allocations: 0 / 0.5242 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002715/0.419, allocations: 1.311 MB / 0.5255 GB, free: 14.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009622/0.42, allocations: 498.4 kB / 0.526 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002786/0.4203, allocations: 8 kB / 0.526 GB, free: 14.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006712/0.4209, allocations: 35.95 kB / 0.526 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.4211, allocations: 63.89 kB / 0.5261 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.936e-05/0.4212, allocations: 43.88 kB / 0.5261 GB, free: 13.97 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002739/0.4239, allocations: 1.903 MB / 0.528 GB, free: 12.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4239, allocations: 4.062 kB / 0.528 GB, free: 12.07 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001418/0.4253, allocations: 0.5891 MB / 0.5286 GB, free: 11.48 MB / 462.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.001205/0.4266, allocations: 0.7802 MB / 0.5293 GB, free: 10.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.4282, allocations: 0.7671 MB / 0.5301 GB, free: 9.902 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4282, allocations: 0 / 0.5301 GB, free: 9.902 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00079/0.429, allocations: 423 kB / 0.5305 GB, free: 9.465 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.4313, allocations: 0.6153 MB / 0.5311 GB, free: 8.844 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006691/0.438, allocations: 4.395 MB / 0.5354 GB, free: 4.402 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001619/0.4396, allocations: 1.665 MB / 0.537 GB, free: 2.711 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001082/0.4407, allocations: 365 kB / 0.5374 GB, free: 2.348 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002424/0.441, allocations: 147.4 kB / 0.5375 GB, free: 2.203 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.441, allocations: 0 / 0.5375 GB, free: 2.203 MB / 462.1 MB Notification: Performance of Templates: time 0.2401/0.6811, allocations: 31.7 MB / 0.5685 GB, free: 100.9 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480]