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.00155/0.00155, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.00183/0.00183, allocations: 195 kB / 18 MB, free: 5.105 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.415/1.415, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001333/0.001333, allocations: 60.28 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08446/0.0858, allocations: 46.61 MB / 374.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.1895/0.2754, allocations: 14.02 MB / 388.5 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02161/0.297, allocations: 19.73 MB / 408.2 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003685/0.3007, allocations: 91.19 kB / 408.3 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003898/0.3047, allocations: 1.201 MB / 409.5 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008925/0.3136, allocations: 2.264 MB / 411.8 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006173/0.3198, allocations: 1.386 MB / 413.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01184/0.3317, allocations: 6.35 MB / 419.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008814/0.3326, allocations: 455.8 kB / 420 MB, free: 452 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.3345, allocations: 1.008 MB / 421 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001354/0.3358, allocations: 1.089 MB / 422.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.336, allocations: 74.34 kB / 422.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004228/0.3403, allocations: 1.16 MB / 423.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003621/0.3406, allocations: 333.6 kB / 423.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001684/0.3423, allocations: 1.378 MB / 425 MB, free: 13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006255/0.3486, allocations: 3.798 MB / 428.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.3486, allocations: 0 / 428.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3487, allocations: 0 / 428.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.773e-05/0.3487, allocations: 0 / 428.8 MB, free: 9.184 MB / 350.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.005486/0.3542, allocations: 3.689 MB / 432.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.3543, allocations: 12.03 kB / 432.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004314/0.3547, allocations: 399.1 kB / 432.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/0.3583, allocations: 2.43 MB / 435.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.3584, allocations: 40.94 kB / 435.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.3585, allocations: 55.98 kB / 435.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.3598, allocations: 0.7265 MB / 436.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.3599, allocations: 3.938 kB / 436.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.293e-05/0.3599, allocations: 16 kB / 436.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.36, allocations: 23.98 kB / 436.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.3615, allocations: 0.8163 MB / 437 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005916/0.3674, allocations: 3.075 MB / 440.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.3687, allocations: 0.5751 MB / 440.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009929/0.3697, allocations: 0.6447 MB / 441.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03188/0.4016, allocations: 30.17 MB / 471.5 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007381/0.4024, allocations: 369.4 kB / 471.8 MB, free: 9.781 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/0.4024, allocations: 0 / 471.8 MB, free: 9.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002231/0.4046, allocations: 1.097 MB / 472.9 MB, free: 8.676 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.4047, allocations: 67.39 kB / 473 MB, free: 8.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003261/0.4079, allocations: 2.944 MB / 475.9 MB, free: 5.645 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.927e-05/0.408, allocations: 37.64 kB / 476 MB, free: 5.602 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.4092, allocations: 1.497 MB / 477.5 MB, free: 4.094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.4093, allocations: 161.7 kB / 477.6 MB, free: 3.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.4096, allocations: 238.1 kB / 477.8 MB, free: 3.695 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.4097, allocations: 342 kB / 478.2 MB, free: 3.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005832/0.4103, allocations: 241.8 kB / 478.4 MB, free: 3.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008089/0.4111, allocations: 0.5942 MB / 479 MB, free: 2.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001423/0.4126, allocations: 0.9013 MB / 479.9 MB, free: 1.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.4126, allocations: 4 kB / 479.9 MB, free: 1.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002117/0.4147, allocations: 1.236 MB / 481.2 MB, free: 28 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.4148, allocations: 12 kB / 481.2 MB, free: 16 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/0.4149, allocations: 80.05 kB / 481.2 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.297e-05/0.4149, allocations: 16 kB / 481.3 MB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000751/0.4157, allocations: 207.5 kB / 481.5 MB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.323e-05/0.4157, allocations: 24.23 kB / 481.5 MB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009231/0.4166, allocations: 107.1 kB / 481.6 MB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.4168, allocations: 68 kB / 481.7 MB, free: 15.52 MB / 414.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.0007941/0.4176, allocations: 437.4 kB / 482.1 MB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003703/0.4179, allocations: 387.3 kB / 482.5 MB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002529/0.4205, allocations: 1.205 MB / 483.7 MB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.4205, allocations: 7.938 kB / 483.7 MB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4205, allocations: 0 / 483.7 MB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.4205, allocations: 3.984 kB / 483.7 MB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003455/0.424, allocations: 2.108 MB / 485.8 MB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.969e-05/0.4241, allocations: 68 kB / 485.9 MB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004867/0.4246, allocations: 91.84 kB / 485.9 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.098e-06/0.4246, allocations: 4 kB / 485.9 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.99e-05/0.4247, allocations: 32 kB / 486 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.79e-06/0.4247, allocations: 4 kB / 486 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4247, allocations: 0 / 486 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.427, allocations: 1.289 MB / 487.3 MB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009266/0.4279, allocations: 484.2 kB / 487.7 MB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000255/0.4282, allocations: 11.98 kB / 487.8 MB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006502/0.4288, allocations: 37.53 kB / 487.8 MB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.429, allocations: 60.02 kB / 487.9 MB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-05/0.4291, allocations: 47.86 kB / 487.9 MB, free: 9.137 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002333/0.4314, allocations: 1.916 MB / 489.8 MB, free: 7.223 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4314, allocations: 0 / 489.8 MB, free: 7.223 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001402/0.4328, allocations: 0.5934 MB / 490.4 MB, free: 6.629 MB / 414.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.001113/0.434, allocations: 0.7845 MB / 491.2 MB, free: 5.836 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.4356, allocations: 0.8099 MB / 492 MB, free: 5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4356, allocations: 0 / 492 MB, free: 5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007598/0.4364, allocations: 451.6 kB / 492.4 MB, free: 4.535 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/0.4381, allocations: 0.5147 MB / 493 MB, free: 4.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00593/0.4441, allocations: 4.321 MB / 497.3 MB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.4455, allocations: 1.673 MB / 499 MB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001094/0.4466, allocations: 357.3 kB / 499.3 MB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.4468, allocations: 155.4 kB / 499.5 MB, free: 13.45 MB / 430.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4468, allocations: 0 / 499.5 MB, free: 13.45 MB / 430.1 MB Notification: Performance of Templates: time 0.05514/0.502, allocations: 31.96 MB / 0.519 GB, free: 13.45 MB / 462.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)