Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.005641/0.005641, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.00114/0.00114, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.393/1.393, allocations: 205.1 MB / 222.5 MB, free: 4.391 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.001258/0.001258, allocations: 53.91 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.09017, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01367/0.1039, allocations: 14.02 MB / 387.2 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02442/0.1283, allocations: 19.73 MB / 406.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003026/0.1314, allocations: 91.25 kB / 407 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003436/0.1349, allocations: 1.217 MB / 408.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008357/0.1433, allocations: 2.277 MB / 410.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005246/0.1486, allocations: 1.4 MB / 411.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01036/0.159, allocations: 6.34 MB / 418.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009012/0.1599, allocations: 465.1 kB / 418.7 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001538/0.1614, allocations: 1.003 MB / 419.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001751/0.1632, allocations: 1.083 MB / 420.8 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003523/0.1636, allocations: 76 kB / 420.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004697/0.1683, allocations: 1.159 MB / 422 MB, free: 228 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004591/0.1688, allocations: 333.6 kB / 422.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001791/0.1706, allocations: 1.378 MB / 423.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005628/0.1762, allocations: 3.79 MB / 427.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1762, allocations: 4 kB / 427.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1762, allocations: 0 / 427.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001051/0.1763, allocations: 0 / 427.5 MB, free: 10.7 MB / 366.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.006034/0.1824, allocations: 3.697 MB / 431.2 MB, free: 6.926 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.1824, allocations: 8.031 kB / 431.2 MB, free: 6.918 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000616/0.1831, allocations: 399.1 kB / 431.6 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003883/0.187, allocations: 2.43 MB / 434 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/0.187, allocations: 44.94 kB / 434.1 MB, free: 3.973 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.1872, allocations: 55.94 kB / 434.1 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.1886, allocations: 0.7265 MB / 434.9 MB, free: 3.184 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.1887, allocations: 0 / 434.9 MB, free: 3.184 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.916e-05/0.1887, allocations: 27.92 kB / 434.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.1888, allocations: 16 kB / 434.9 MB, free: 3.141 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.1904, allocations: 0.8202 MB / 435.7 MB, free: 2.324 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005971/0.1964, allocations: 3.075 MB / 438.8 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.1978, allocations: 0.5713 MB / 439.4 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.1989, allocations: 0.6438 MB / 440 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2247/0.4236, allocations: 30.16 MB / 470.2 MB, free: 59.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008033/0.4245, allocations: 367 kB / 470.5 MB, free: 59.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.4245, allocations: 0 / 470.5 MB, free: 59.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002213/0.4267, allocations: 1.102 MB / 471.6 MB, free: 58.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.4268, allocations: 59 kB / 471.7 MB, free: 58.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003183/0.4299, allocations: 2.951 MB / 474.6 MB, free: 57.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.985e-05/0.43, allocations: 40.05 kB / 474.7 MB, free: 57.31 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009664/0.431, allocations: 1.497 MB / 476.2 MB, free: 56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.4311, allocations: 169.9 kB / 476.3 MB, free: 55.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003/0.4314, allocations: 226.8 kB / 476.6 MB, free: 55.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.695e-05/0.4315, allocations: 336.3 kB / 476.9 MB, free: 55.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005474/0.4321, allocations: 249.7 kB / 477.1 MB, free: 55.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006664/0.4327, allocations: 0.6054 MB / 477.7 MB, free: 54.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.4339, allocations: 0.8972 MB / 478.6 MB, free: 54.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.434, allocations: 3.938 kB / 478.6 MB, free: 54.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001756/0.4357, allocations: 1.224 MB / 479.9 MB, free: 53.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.4358, allocations: 11.72 kB / 479.9 MB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.424e-05/0.4359, allocations: 82.72 kB / 480 MB, free: 53.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.695e-05/0.4359, allocations: 23.66 kB / 480 MB, free: 53.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006518/0.4365, allocations: 201.3 kB / 480.2 MB, free: 53.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/0.4366, allocations: 27.7 kB / 480.2 MB, free: 53.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009388/0.4375, allocations: 108.2 kB / 480.3 MB, free: 53.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.643e-05/0.4376, allocations: 62 kB / 480.4 MB, free: 53.3 MB / 382.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.0006017/0.4382, allocations: 438.4 kB / 480.8 MB, free: 53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/0.4385, allocations: 387.8 kB / 481.2 MB, free: 52.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/0.4408, allocations: 1.2 MB / 482.4 MB, free: 52.24 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.4408, allocations: 3.938 kB / 482.4 MB, free: 52.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4408, allocations: 0 / 482.4 MB, free: 52.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4408, allocations: 3.938 kB / 482.4 MB, free: 52.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002801/0.4436, allocations: 2.113 MB / 484.5 MB, free: 50.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001002/0.4437, allocations: 69.25 kB / 484.6 MB, free: 50.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000473/0.4442, allocations: 102.4 kB / 484.7 MB, free: 50.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.4442, allocations: 2.688 kB / 484.7 MB, free: 50.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.684e-05/0.4443, allocations: 32.14 kB / 484.7 MB, free: 50.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.4443, allocations: 8.328 kB / 484.7 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4443, allocations: 0.875 kB / 484.7 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001978/0.4463, allocations: 1.305 MB / 486 MB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005327/0.4469, allocations: 480.2 kB / 486.5 MB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.4472, allocations: 12 kB / 486.5 MB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006631/0.4478, allocations: 27.95 kB / 486.5 MB, free: 49.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.448, allocations: 63.89 kB / 486.6 MB, free: 49.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.836e-05/0.448, allocations: 39.98 kB / 486.6 MB, free: 49.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00192/0.45, allocations: 1.916 MB / 488.5 MB, free: 47.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.45, allocations: 4.062 kB / 488.5 MB, free: 47.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001232/0.4512, allocations: 0.5894 MB / 489.1 MB, free: 46.91 MB / 382.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.0009204/0.4521, allocations: 0.7746 MB / 489.9 MB, free: 46.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.4535, allocations: 0.8063 MB / 490.7 MB, free: 45.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4535, allocations: 0 / 490.7 MB, free: 45.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006493/0.4542, allocations: 447.2 kB / 491.2 MB, free: 44.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.4558, allocations: 0.5193 MB / 491.7 MB, free: 44.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004527/0.4603, allocations: 4.327 MB / 496 MB, free: 40.08 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007143/0.461, allocations: 1.665 MB / 497.7 MB, free: 38.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007835/0.4618, allocations: 362.8 kB / 498 MB, free: 38.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.462, allocations: 147.4 kB / 498.2 MB, free: 37.9 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.462, allocations: 4 kB / 498.2 MB, free: 37.89 MB / 382.1 MB Notification: Performance of Templates: time 0.04249/0.5045, allocations: 31.37 MB / 0.5171 GB, free: 6.484 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)