Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001135/0.001135, allocations: 90.2 kB / 16.31 MB, free: 5.676 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.001291/0.001292, allocations: 180.5 kB / 17.21 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.697/1.697, allocations: 205.4 MB / 223.4 MB, free: 13.11 MB / 190.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.0005398/0.0005398, allocations: 12 kB / 280.1 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.114, allocations: 47.58 MB / 327.7 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01123/0.1253, allocations: 12.41 MB / 340.1 MB, free: 7.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02119/0.1465, allocations: 17.92 MB / 358.1 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.1484, allocations: 27.81 kB / 358.1 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002737/0.1512, allocations: 0.9447 MB / 359 MB, free: 4.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007285/0.1585, allocations: 1.809 MB / 360.8 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005208/0.1637, allocations: 1.065 MB / 361.9 MB, free: 1.781 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01044/0.1742, allocations: 5.919 MB / 367.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001206/0.1754, allocations: 424.5 kB / 368.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001676/0.1771, allocations: 0.8512 MB / 369.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001772/0.1789, allocations: 0.9862 MB / 370.1 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004295/0.1793, allocations: 44 kB / 370.1 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005302/0.1846, allocations: 1.077 MB / 371.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005325/0.1852, allocations: 269.9 kB / 371.5 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.1864, allocations: 0.6287 MB / 372.1 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003579/0.19, allocations: 2.703 MB / 374.8 MB, free: 4.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.19, allocations: 3.984 kB / 374.8 MB, free: 4.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.19, allocations: 4 kB / 374.8 MB, free: 4.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001695/0.1902, allocations: 0 / 374.8 MB, free: 4.805 MB / 318.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.005747/0.1959, allocations: 3.268 MB / 378.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.196, allocations: 8.031 kB / 378.1 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007408/0.1967, allocations: 407.1 kB / 378.5 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1901/0.3868, allocations: 2.28 MB / 380.7 MB, free: 35.47 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.325e-05/0.3869, allocations: 35.06 kB / 380.8 MB, free: 35.47 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.3871, allocations: 58.03 kB / 380.8 MB, free: 35.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.3886, allocations: 0.75 MB / 381.6 MB, free: 35.42 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.3887, allocations: 0.6094 kB / 381.6 MB, free: 35.42 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.2e-05/0.3888, allocations: 21.44 kB / 381.6 MB, free: 35.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.234e-05/0.3888, allocations: 20.19 kB / 381.6 MB, free: 35.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/0.3905, allocations: 0.8594 MB / 382.5 MB, free: 35.42 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006057/0.3966, allocations: 3.087 MB / 385.6 MB, free: 34.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.3979, allocations: 0.6172 MB / 386.2 MB, free: 34.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.399, allocations: 0.6664 MB / 386.9 MB, free: 34.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0242/0.4232, allocations: 30.22 MB / 417.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006455/0.4239, allocations: 389.7 kB / 417.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.455e-06/0.4239, allocations: 0 / 417.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002048/0.426, allocations: 1.156 MB / 418.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.426, allocations: 64.73 kB / 418.7 MB, free: 11.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.429, allocations: 2.918 MB / 421.6 MB, free: 9.641 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.234e-05/0.429, allocations: 37.7 kB / 421.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008896/0.4299, allocations: 1.494 MB / 423.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.43, allocations: 167.3 kB / 423.3 MB, free: 7.938 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.062e-05/0.4301, allocations: 20 kB / 423.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.472e-05/0.4302, allocations: 341.9 kB / 423.6 MB, free: 7.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004843/0.4307, allocations: 257.9 kB / 423.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.4312, allocations: 0.6157 MB / 424.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005387/0.4318, allocations: 345.5 kB / 424.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.4318, allocations: 4 kB / 424.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00173/0.4335, allocations: 1.266 MB / 426.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.4336, allocations: 12.06 kB / 426.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.232e-05/0.4337, allocations: 87.98 kB / 426.2 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.4337, allocations: 16.75 kB / 426.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006085/0.4343, allocations: 214.5 kB / 426.4 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/0.4343, allocations: 26.98 kB / 426.5 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009863/0.4353, allocations: 120.3 kB / 426.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.036e-05/0.4354, allocations: 68 kB / 426.6 MB, free: 4.508 MB / 318.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.0006326/0.4361, allocations: 434.3 kB / 427.1 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/0.4363, allocations: 383.4 kB / 427.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002527/0.4389, allocations: 1.243 MB / 428.7 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.4389, allocations: 9.734 kB / 428.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4389, allocations: 4 kB / 428.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.4389, allocations: 0 / 428.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.4416, allocations: 2.135 MB / 430.8 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.15e-05/0.4417, allocations: 73.19 kB / 430.9 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004156/0.4422, allocations: 105.8 kB / 431 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.83e-06/0.4422, allocations: 0 / 431 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.089e-05/0.4422, allocations: 40.86 kB / 431 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.4422, allocations: 3.953 kB / 431.1 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4423, allocations: 4 kB / 431.1 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.4445, allocations: 1.361 MB / 432.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007028/0.4452, allocations: 481.7 kB / 432.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/0.4455, allocations: 8 kB / 432.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006025/0.4461, allocations: 53.5 kB / 432.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.4463, allocations: 63.89 kB / 433 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.288e-05/0.4463, allocations: 36 kB / 433 MB, free: 14.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002454/0.4488, allocations: 1.881 MB / 434.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4488, allocations: 4 kB / 434.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001351/0.4502, allocations: 0.5894 MB / 435.5 MB, free: 11.57 MB / 334.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.001135/0.4513, allocations: 0.7409 MB / 436.3 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.453, allocations: 0.8438 MB / 437.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.453, allocations: 0 / 437.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007857/0.4538, allocations: 466.1 kB / 437.6 MB, free: 9.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00181/0.4556, allocations: 0.4945 MB / 438.1 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00708/0.4627, allocations: 4.929 MB / 443 MB, free: 4.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.4639, allocations: 1.673 MB / 444.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001316/0.4652, allocations: 360.3 kB / 445 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.4654, allocations: 151.4 kB / 445.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4654, allocations: 0 / 445.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of Templates: time 0.05024/0.5157, allocations: 29.19 MB / 474.3 MB, free: 4.934 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)