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.006856/0.006856, allocations: 98.52 kB / 15.73 MB, free: 6.055 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.001143/0.001143, allocations: 195.7 kB / 16.68 MB, free: 5.969 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.434/1.434, allocations: 205.1 MB / 222.6 MB, free: 4.496 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.00117/0.00117, allocations: 58.19 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09812, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01302/0.1112, allocations: 14.03 MB / 387.2 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02253/0.1338, allocations: 19.73 MB / 406.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004092/0.1379, allocations: 91.25 kB / 407 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004286/0.1423, allocations: 1.213 MB / 408.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01029/0.1526, allocations: 2.281 MB / 410.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006098/0.1587, allocations: 1.393 MB / 411.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01034/0.1691, allocations: 6.344 MB / 418.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008753/0.17, allocations: 461.1 kB / 418.7 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.1715, allocations: 1.003 MB / 419.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001148/0.1726, allocations: 1.094 MB / 420.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.1728, allocations: 76 kB / 420.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003782/0.1766, allocations: 1.159 MB / 422 MB, free: 224 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003602/0.177, allocations: 325.6 kB / 422.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.1783, allocations: 1.378 MB / 423.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005084/0.1834, allocations: 3.822 MB / 427.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1834, allocations: 0 / 427.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1834, allocations: 0 / 427.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.285e-05/0.1835, allocations: 0 / 427.5 MB, free: 10.67 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.005558/0.1891, allocations: 3.825 MB / 431.4 MB, free: 6.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1891, allocations: 12.03 kB / 431.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004348/0.1896, allocations: 417.3 kB / 431.8 MB, free: 6.348 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003518/0.1931, allocations: 2.461 MB / 434.2 MB, free: 3.816 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.1931, allocations: 40.94 kB / 434.3 MB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.1933, allocations: 67.88 kB / 434.3 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.1947, allocations: 0.7265 MB / 435.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.1947, allocations: 0 / 435.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.921e-05/0.1948, allocations: 20 kB / 435.1 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.1948, allocations: 19.98 kB / 435.1 MB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.1964, allocations: 0.8202 MB / 435.9 MB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005439/0.2019, allocations: 3.072 MB / 439 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.2031, allocations: 0.5791 MB / 439.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.2041, allocations: 0.6553 MB / 440.2 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2219/0.426, allocations: 30.16 MB / 470.4 MB, free: 59.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007512/0.4268, allocations: 363.3 kB / 470.8 MB, free: 59.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.745e-06/0.4268, allocations: 0 / 470.8 MB, free: 59.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002285/0.4291, allocations: 1.123 MB / 471.9 MB, free: 58.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.4291, allocations: 60 kB / 471.9 MB, free: 58.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003392/0.4325, allocations: 2.952 MB / 474.9 MB, free: 57.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.381e-05/0.4326, allocations: 41.2 kB / 474.9 MB, free: 57.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000972/0.4336, allocations: 1.501 MB / 476.4 MB, free: 55.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.4338, allocations: 175.7 kB / 476.6 MB, free: 55.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003291/0.4341, allocations: 235.3 kB / 476.8 MB, free: 55.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.393e-05/0.4342, allocations: 337.3 kB / 477.2 MB, free: 55.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005331/0.4347, allocations: 243.5 kB / 477.4 MB, free: 55.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006292/0.4353, allocations: 0.6019 MB / 478 MB, free: 54.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.4365, allocations: 0.897 MB / 478.9 MB, free: 53.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.4365, allocations: 7.906 kB / 478.9 MB, free: 53.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001841/0.4384, allocations: 1.245 MB / 480.2 MB, free: 53.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.4384, allocations: 11.78 kB / 480.2 MB, free: 53.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.783e-05/0.4385, allocations: 86.44 kB / 480.2 MB, free: 53.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/0.4385, allocations: 19.66 kB / 480.3 MB, free: 53.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006502/0.4392, allocations: 204.5 kB / 480.5 MB, free: 53.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.012e-05/0.4392, allocations: 23.67 kB / 480.5 MB, free: 53.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009511/0.4402, allocations: 112.8 kB / 480.6 MB, free: 53.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-05/0.4403, allocations: 70.38 kB / 480.7 MB, free: 53.11 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.0005923/0.4409, allocations: 434 kB / 481.1 MB, free: 52.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.4411, allocations: 405.6 kB / 481.5 MB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/0.4434, allocations: 1.21 MB / 482.7 MB, free: 52.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.4434, allocations: 7.594 kB / 482.7 MB, free: 52.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4434, allocations: 0 / 482.7 MB, free: 52.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.4434, allocations: 3.969 kB / 482.7 MB, free: 52.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002862/0.4463, allocations: 2.094 MB / 484.8 MB, free: 50.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.237e-05/0.4464, allocations: 68.88 kB / 484.9 MB, free: 50.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000461/0.4468, allocations: 96.55 kB / 485 MB, free: 50.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.4469, allocations: 1.938 kB / 485 MB, free: 50.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.936e-05/0.4469, allocations: 36.11 kB / 485 MB, free: 50.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4469, allocations: 3.312 kB / 485 MB, free: 50.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4469, allocations: 0 / 485 MB, free: 50.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.4489, allocations: 1.335 MB / 486.3 MB, free: 49.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006922/0.4496, allocations: 492.3 kB / 486.8 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.4499, allocations: 8 kB / 486.8 MB, free: 49.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006712/0.4506, allocations: 39.89 kB / 486.9 MB, free: 49.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.4507, allocations: 55.95 kB / 486.9 MB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.024e-05/0.4508, allocations: 43.98 kB / 487 MB, free: 49.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001938/0.4527, allocations: 1.916 MB / 488.9 MB, free: 47.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4527, allocations: 4.062 kB / 488.9 MB, free: 47.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001219/0.4539, allocations: 0.5974 MB / 489.5 MB, free: 46.62 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.0008959/0.4548, allocations: 0.7766 MB / 490.3 MB, free: 45.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.4563, allocations: 0.8063 MB / 491.1 MB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4563, allocations: 0 / 491.1 MB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006371/0.4569, allocations: 455.2 kB / 491.5 MB, free: 44.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.4585, allocations: 0.5198 MB / 492 MB, free: 44.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004674/0.4632, allocations: 4.41 MB / 496.4 MB, free: 39.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006994/0.4639, allocations: 1.669 MB / 498.1 MB, free: 38.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008331/0.4647, allocations: 355.7 kB / 498.5 MB, free: 37.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.4649, allocations: 155.4 kB / 498.6 MB, free: 37.52 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4649, allocations: 4 kB / 498.6 MB, free: 37.52 MB / 382.1 MB Notification: Performance of Templates: time 0.04385/0.5088, allocations: 31.37 MB / 0.5176 GB, free: 6.098 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)