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.0008906/0.0008904, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.0008902/0.0008905, allocations: 177.3 kB / 15.95 MB, free: 208 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.441/1.441, allocations: 205.4 MB / 222.1 MB, free: 5.895 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.0004773/0.0004775, allocations: 16 kB / 278.9 MB, free: 13.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.322, allocations: 47.58 MB / 326.4 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0112/0.3332, allocations: 11.27 MB / 337.7 MB, free: 8.273 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02235/0.3557, allocations: 16.99 MB / 354.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003367/0.3591, allocations: 27.81 kB / 354.7 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003689/0.3628, allocations: 0.9757 MB / 355.7 MB, free: 6.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009977/0.3728, allocations: 2.052 MB / 357.8 MB, free: 4.168 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00587/0.3787, allocations: 1.141 MB / 358.9 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01288/0.3916, allocations: 6.072 MB / 365 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001089/0.3928, allocations: 420.6 kB / 365.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001951/0.3947, allocations: 0.8278 MB / 366.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001228/0.396, allocations: 0.994 MB / 367.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.3961, allocations: 44 kB / 367.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00535/0.4015, allocations: 1.21 MB / 368.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003788/0.4019, allocations: 273.9 kB / 368.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.4029, allocations: 0.6209 MB / 369.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003566/0.4065, allocations: 2.623 MB / 372 MB, free: 5.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4065, allocations: 0 / 372 MB, free: 5.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4065, allocations: 0 / 372 MB, free: 5.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.641e-05/0.4066, allocations: 0 / 372 MB, free: 5.887 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.00576/0.4123, allocations: 3.268 MB / 375.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.4124, allocations: 8.031 kB / 375.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003861/0.4128, allocations: 399.1 kB / 375.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003545/0.4163, allocations: 2.266 MB / 377.9 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.4164, allocations: 37 kB / 377.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.4165, allocations: 51.91 kB / 378 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.4179, allocations: 0.7499 MB / 378.7 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.4179, allocations: 0 / 378.7 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.509e-05/0.418, allocations: 23.98 kB / 378.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.685e-05/0.418, allocations: 23.98 kB / 378.8 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.4196, allocations: 0.8592 MB / 379.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005243/0.4248, allocations: 3.069 MB / 382.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.4262, allocations: 0.6142 MB / 383.3 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03/0.4562, allocations: 30.35 MB / 413.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008515/0.4571, allocations: 389.6 kB / 414.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.256e-06/0.4571, allocations: 0 / 414.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002522/0.4596, allocations: 1.47 MB / 415.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.4597, allocations: 59.41 kB / 415.6 MB, free: 5.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003754/0.4635, allocations: 2.917 MB / 418.5 MB, free: 2.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.718e-05/0.4635, allocations: 33.7 kB / 418.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.4647, allocations: 1.497 MB / 420 MB, free: 1.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.4649, allocations: 165.6 kB / 420.2 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.292e-05/0.4649, allocations: 16 kB / 420.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.4651, allocations: 353.9 kB / 420.5 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006296/0.4657, allocations: 257.9 kB / 420.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008253/0.4666, allocations: 0.6138 MB / 421.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006477/0.4672, allocations: 340.5 kB / 421.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.4672, allocations: 4 kB / 421.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0022/0.4694, allocations: 1.265 MB / 423 MB, free: 14.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.4695, allocations: 16.12 kB / 423 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/0.4696, allocations: 87.98 kB / 423.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.861e-05/0.4696, allocations: 23.98 kB / 423.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007024/0.4704, allocations: 207.6 kB / 423.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.074e-05/0.4704, allocations: 27.88 kB / 423.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009423/0.4713, allocations: 127 kB / 423.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.988e-05/0.4715, allocations: 60 kB / 423.6 MB, free: 13.62 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.0007764/0.4722, allocations: 433.5 kB / 424 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003639/0.4726, allocations: 383.3 kB / 424.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003092/0.4757, allocations: 1.26 MB / 425.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.4757, allocations: 8 kB / 425.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.4757, allocations: 3.953 kB / 425.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.4758, allocations: 3.984 kB / 425.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003506/0.4793, allocations: 2.132 MB / 427.8 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-05/0.4794, allocations: 67.98 kB / 427.8 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/0.4799, allocations: 107.9 kB / 427.9 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.4799, allocations: 3.953 kB / 427.9 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.436e-05/0.48, allocations: 39.98 kB / 428 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.48, allocations: 4 kB / 428 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.48, allocations: 3.984 kB / 428 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.4823, allocations: 1.42 MB / 429.4 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007485/0.4831, allocations: 464.3 kB / 429.9 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002746/0.4834, allocations: 12 kB / 429.9 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006409/0.484, allocations: 40.02 kB / 429.9 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.4842, allocations: 63.94 kB / 430 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.974e-05/0.4843, allocations: 39.98 kB / 430 MB, free: 6.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002557/0.4868, allocations: 1.884 MB / 431.9 MB, free: 5.113 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4868, allocations: 0 / 431.9 MB, free: 5.113 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001312/0.4882, allocations: 0.5816 MB / 432.5 MB, free: 4.531 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.0009998/0.4892, allocations: 0.7456 MB / 433.2 MB, free: 3.777 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.4908, allocations: 0.8452 MB / 434.1 MB, free: 2.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4908, allocations: 3.938 kB / 434.1 MB, free: 2.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007564/0.4915, allocations: 463.2 kB / 434.5 MB, free: 2.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001357/0.4929, allocations: 0.4906 MB / 435 MB, free: 1.934 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00638/0.4993, allocations: 4.916 MB / 439.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001145/0.5005, allocations: 1.735 MB / 441.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001197/0.5017, allocations: 361.3 kB / 442 MB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.5019, allocations: 151.4 kB / 442.2 MB, free: 10.71 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5019, allocations: 0 / 442.2 MB, free: 10.71 MB / 382.1 MB Notification: Performance of Templates: time 0.2191/0.721, allocations: 28.5 MB / 470.7 MB, free: 105.9 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: