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.005981/0.005981, allocations: 96.56 kB / 15.73 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.001208/0.001208, allocations: 194.5 kB / 16.68 MB, free: 5.957 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.42/1.42, allocations: 205.1 MB / 222.5 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.001653/0.001653, allocations: 47.95 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1016, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01342/0.1151, allocations: 14.03 MB / 387.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02366/0.1388, allocations: 19.73 MB / 406.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002781/0.1416, allocations: 91.25 kB / 407 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004014/0.1457, allocations: 1.205 MB / 408.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008835/0.1545, allocations: 2.258 MB / 410.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005061/0.1596, allocations: 1.392 MB / 411.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.1697, allocations: 6.341 MB / 418.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000847/0.1705, allocations: 457.1 kB / 418.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001489/0.172, allocations: 0.9796 MB / 419.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.1736, allocations: 1.091 MB / 420.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002982/0.1739, allocations: 76 kB / 420.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003934/0.1778, allocations: 1.159 MB / 421.9 MB, free: 312 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004365/0.1783, allocations: 333.6 kB / 422.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001644/0.18, allocations: 1.374 MB / 423.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005585/0.1856, allocations: 3.822 MB / 427.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1856, allocations: 0 / 427.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1856, allocations: 0 / 427.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001283/0.1857, allocations: 0 / 427.5 MB, free: 10.75 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.005518/0.1913, allocations: 3.825 MB / 431.3 MB, free: 6.852 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.1913, allocations: 12.02 kB / 431.3 MB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004685/0.1918, allocations: 417.4 kB / 431.7 MB, free: 6.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003279/0.1951, allocations: 2.461 MB / 434.2 MB, free: 3.898 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.893e-05/0.1951, allocations: 52.92 kB / 434.2 MB, free: 3.844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.1953, allocations: 55.89 kB / 434.3 MB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.1966, allocations: 0.7304 MB / 435 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.1966, allocations: 0 / 435 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-05/0.1967, allocations: 20 kB / 435 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.1967, allocations: 19.98 kB / 435.1 MB, free: 3.012 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/0.1982, allocations: 0.8241 MB / 435.9 MB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004537/0.2027, allocations: 3.068 MB / 438.9 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.2039, allocations: 0.5751 MB / 439.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009331/0.2048, allocations: 0.6554 MB / 440.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2022/0.407, allocations: 30.16 MB / 470.3 MB, free: 59.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007523/0.4078, allocations: 363.8 kB / 470.7 MB, free: 58.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.766e-06/0.4078, allocations: 3.391 kB / 470.7 MB, free: 58.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002206/0.41, allocations: 1.121 MB / 471.8 MB, free: 58.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.4101, allocations: 63.25 kB / 471.9 MB, free: 58.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/0.4132, allocations: 2.954 MB / 474.8 MB, free: 57.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.043e-05/0.4133, allocations: 37.11 kB / 474.9 MB, free: 57.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009798/0.4143, allocations: 1.503 MB / 476.4 MB, free: 55.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.4144, allocations: 174.5 kB / 476.5 MB, free: 55.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003322/0.4147, allocations: 236 kB / 476.8 MB, free: 55.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.053e-05/0.4148, allocations: 341.8 kB / 477.1 MB, free: 55.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005506/0.4154, allocations: 239.7 kB / 477.3 MB, free: 55.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006879/0.4161, allocations: 0.602 MB / 477.9 MB, free: 54.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.4173, allocations: 0.8952 MB / 478.8 MB, free: 53.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/0.4173, allocations: 3.938 kB / 478.8 MB, free: 53.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001824/0.4192, allocations: 1.244 MB / 480.1 MB, free: 53.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.4192, allocations: 11.81 kB / 480.1 MB, free: 53.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/0.4193, allocations: 82.77 kB / 480.2 MB, free: 53.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.628e-05/0.4193, allocations: 27.22 kB / 480.2 MB, free: 53.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006372/0.42, allocations: 201 kB / 480.4 MB, free: 53.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.967e-05/0.42, allocations: 23.56 kB / 480.4 MB, free: 53.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009921/0.421, allocations: 118.3 kB / 480.5 MB, free: 53.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.926e-05/0.4211, allocations: 66.16 kB / 480.6 MB, free: 53.04 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.0006104/0.4217, allocations: 435.7 kB / 481 MB, free: 52.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002839/0.422, allocations: 398.7 kB / 481.4 MB, free: 52.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/0.4243, allocations: 1.213 MB / 482.6 MB, free: 51.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.4243, allocations: 7.953 kB / 482.6 MB, free: 51.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4243, allocations: 3.469 kB / 482.6 MB, free: 51.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.4243, allocations: 0 / 482.6 MB, free: 51.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.4269, allocations: 2.1 MB / 484.7 MB, free: 50.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.76e-05/0.427, allocations: 67.53 kB / 484.8 MB, free: 50.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004566/0.4275, allocations: 93.64 kB / 484.9 MB, free: 50.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.4275, allocations: 2 kB / 484.9 MB, free: 50.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.271e-05/0.4276, allocations: 36.39 kB / 484.9 MB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.4276, allocations: 2.656 kB / 484.9 MB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4276, allocations: 2 kB / 484.9 MB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.4294, allocations: 1.325 MB / 486.3 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004829/0.4299, allocations: 0.4888 MB / 486.8 MB, free: 49.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002641/0.4302, allocations: 11.62 kB / 486.8 MB, free: 49.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006518/0.4309, allocations: 31.95 kB / 486.8 MB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.431, allocations: 63.78 kB / 486.9 MB, free: 49.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.341e-05/0.4311, allocations: 36 kB / 486.9 MB, free: 49.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001784/0.4328, allocations: 1.92 MB / 488.8 MB, free: 47.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4329, allocations: 4.062 kB / 488.8 MB, free: 47.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00109/0.434, allocations: 0.5895 MB / 489.4 MB, free: 46.57 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.0008463/0.4348, allocations: 0.7878 MB / 490.2 MB, free: 45.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.4361, allocations: 0.8179 MB / 491 MB, free: 45.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4361, allocations: 0 / 491 MB, free: 45.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006086/0.4367, allocations: 443.2 kB / 491.4 MB, free: 44.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/0.4381, allocations: 0.5116 MB / 492 MB, free: 44.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004311/0.4425, allocations: 4.415 MB / 496.4 MB, free: 39.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000652/0.4431, allocations: 1.669 MB / 498 MB, free: 37.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007508/0.4439, allocations: 358.2 kB / 498.4 MB, free: 37.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.4441, allocations: 151.4 kB / 498.5 MB, free: 37.48 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4441, allocations: 4 kB / 498.5 MB, free: 37.48 MB / 382.1 MB Notification: Performance of Templates: time 0.04079/0.4849, allocations: 31.38 MB / 0.5175 GB, free: 6.059 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)