Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000465/0.0004651, allocations: 14.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2621, allocations: 47.58 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01148/0.2737, allocations: 12.4 MB / 338.9 MB, free: 7.07 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02426/0.298, allocations: 17.94 MB / 356.8 MB, free: 5.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004198/0.3022, allocations: 31.81 kB / 356.9 MB, free: 5.043 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004819/0.3071, allocations: 0.933 MB / 357.8 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01432/0.3215, allocations: 1.809 MB / 359.6 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008766/0.3303, allocations: 1.069 MB / 360.7 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0196/0.3499, allocations: 5.916 MB / 366.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002366/0.3524, allocations: 416.6 kB / 367 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003329/0.3557, allocations: 0.8473 MB / 367.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003186/0.359, allocations: 0.9901 MB / 368.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005975/0.3596, allocations: 40 kB / 368.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009379/0.369, allocations: 1.081 MB / 369.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009319/0.37, allocations: 273.9 kB / 370.2 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001625/0.3717, allocations: 0.6248 MB / 370.8 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004691/0.3764, allocations: 2.703 MB / 373.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3764, allocations: 0 / 373.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3764, allocations: 0 / 373.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001517/0.3766, allocations: 0 / 373.5 MB, free: 4.254 MB / 302.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.006826/0.3834, allocations: 3.28 MB / 376.8 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.3835, allocations: 11.97 kB / 376.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008721/0.3844, allocations: 403.1 kB / 377.2 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00495/0.3894, allocations: 2.278 MB / 379.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.501e-05/0.3894, allocations: 37 kB / 379.5 MB, free: 14.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002926/0.3897, allocations: 55.89 kB / 379.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.3915, allocations: 0.7499 MB / 380.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3916, allocations: 0 / 380.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.3917, allocations: 20 kB / 380.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-05/0.3917, allocations: 27.97 kB / 380.4 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.3935, allocations: 0.8593 MB / 381.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007099/0.4006, allocations: 3.088 MB / 384.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.4019, allocations: 0.6064 MB / 384.9 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.4031, allocations: 0.6711 MB / 385.6 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03154/0.4346, allocations: 30.23 MB / 415.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000779/0.4354, allocations: 377.7 kB / 416.2 MB, free: 5.207 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.687e-06/0.4355, allocations: 0 / 416.2 MB, free: 5.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00264/0.4381, allocations: 1.163 MB / 417.4 MB, free: 4.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.359e-05/0.4382, allocations: 67.39 kB / 417.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004832/0.4431, allocations: 2.909 MB / 420.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.98e-05/0.4432, allocations: 37.7 kB / 420.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001489/0.4447, allocations: 1.497 MB / 421.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002193/0.4449, allocations: 165.7 kB / 422 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.387e-05/0.4449, allocations: 20 kB / 422.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.4451, allocations: 334 kB / 422.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006665/0.4458, allocations: 265.8 kB / 422.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008562/0.4467, allocations: 0.6215 MB / 423.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007166/0.4474, allocations: 340.5 kB / 423.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.4474, allocations: 8 kB / 423.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002519/0.4499, allocations: 1.265 MB / 424.9 MB, free: 12.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/0.45, allocations: 12 kB / 424.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001377/0.4501, allocations: 80 kB / 425 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.979e-05/0.4502, allocations: 23.95 kB / 425 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007215/0.4509, allocations: 215.9 kB / 425.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.028e-05/0.4509, allocations: 27.92 kB / 425.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.4521, allocations: 118.9 kB / 425.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.4523, allocations: 64 kB / 425.4 MB, free: 11.78 MB / 366.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009475/0.4532, allocations: 441.5 kB / 425.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007078/0.454, allocations: 379.4 kB / 426.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003276/0.4572, allocations: 1.241 MB / 427.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.4573, allocations: 7.953 kB / 427.5 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4573, allocations: 0 / 427.5 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.4573, allocations: 3.984 kB / 427.5 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003916/0.4612, allocations: 2.136 MB / 429.6 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001108/0.4613, allocations: 76 kB / 429.7 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004829/0.4618, allocations: 99.81 kB / 429.8 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.616e-05/0.4619, allocations: 8.047 kB / 429.8 MB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.848e-05/0.4619, allocations: 43.92 kB / 429.8 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.462, allocations: 4 kB / 429.8 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.462, allocations: 0 / 429.8 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002639/0.4646, allocations: 1.356 MB / 431.2 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009694/0.4656, allocations: 484.1 kB / 431.7 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006/0.4662, allocations: 19.94 kB / 431.7 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009746/0.4672, allocations: 40.03 kB / 431.7 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.4674, allocations: 59.88 kB / 431.8 MB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.4675, allocations: 43.98 kB / 431.8 MB, free: 5.223 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003693/0.4712, allocations: 1.881 MB / 433.7 MB, free: 3.344 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4712, allocations: 0 / 433.7 MB, free: 3.344 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002151/0.4733, allocations: 0.5855 MB / 434.3 MB, free: 2.758 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001648/0.475, allocations: 0.7457 MB / 435 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001822/0.4768, allocations: 0.8413 MB / 435.9 MB, free: 1.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4768, allocations: 4.125 kB / 435.9 MB, free: 1.133 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007947/0.4776, allocations: 463.1 kB / 436.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/0.4802, allocations: 0.4906 MB / 436.8 MB, free: 164 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007768/0.4879, allocations: 4.92 MB / 441.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001559/0.4895, allocations: 1.669 MB / 443.4 MB, free: 9.512 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001314/0.4909, allocations: 365.3 kB / 443.8 MB, free: 9.148 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002269/0.4911, allocations: 155.3 kB / 443.9 MB, free: 8.996 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4911, allocations: 0 / 443.9 MB, free: 8.996 MB / 382.1 MB Notification: Performance of Templates: time 0.211/0.7021, allocations: 29.19 MB / 473.1 MB, free: 103.5 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)