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.001246/0.001246, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 196.2 kB / 16.53 MB, free: 6.699 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.398/1.398, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.001351/0.001351, allocations: 55.91 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2117, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01252/0.2242, allocations: 14.04 MB / 339.3 MB, free: 5.859 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02253/0.2468, allocations: 19.73 MB / 359.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00335/0.2502, allocations: 31.81 kB / 359.1 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003674/0.2539, allocations: 1.203 MB / 360.3 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008311/0.2623, allocations: 2.258 MB / 362.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004912/0.2672, allocations: 1.385 MB / 363.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01084/0.2781, allocations: 6.321 MB / 370.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000849/0.279, allocations: 461.1 kB / 370.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001398/0.2804, allocations: 0.9679 MB / 371.7 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001141/0.2815, allocations: 1.083 MB / 372.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001998/0.2817, allocations: 80 kB / 372.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003514/0.2853, allocations: 1.159 MB / 374 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003468/0.2856, allocations: 337.6 kB / 374.3 MB, free: 2.691 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001339/0.287, allocations: 1.386 MB / 375.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004623/0.2916, allocations: 3.763 MB / 379.5 MB, free: 13.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2916, allocations: 0 / 379.5 MB, free: 13.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2916, allocations: 0 / 379.5 MB, free: 13.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.454e-05/0.2917, allocations: 0 / 379.5 MB, free: 13.52 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.004848/0.2966, allocations: 3.701 MB / 383.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2966, allocations: 19.97 kB / 383.2 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000377/0.297, allocations: 399.1 kB / 383.6 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003093/0.3001, allocations: 2.445 MB / 386 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.359e-05/0.3001, allocations: 40.92 kB / 386.1 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.3003, allocations: 63.89 kB / 386.1 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.3016, allocations: 0.7304 MB / 386.9 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.3016, allocations: 0 / 386.9 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7e-05/0.3017, allocations: 20 kB / 386.9 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.056e-05/0.3017, allocations: 23.98 kB / 386.9 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.3032, allocations: 0.8163 MB / 387.7 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004932/0.3082, allocations: 3.065 MB / 390.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.3094, allocations: 0.579 MB / 391.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009482/0.3103, allocations: 0.6399 MB / 392 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02734/0.3377, allocations: 30.19 MB / 422.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007343/0.3384, allocations: 361.7 kB / 422.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.3385, allocations: 0 / 422.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002266/0.3407, allocations: 1.1 MB / 423.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.3408, allocations: 63.41 kB / 423.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003454/0.3443, allocations: 2.952 MB / 426.7 MB, free: 9.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.876e-05/0.3443, allocations: 37.7 kB / 426.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.3455, allocations: 1.494 MB / 428.2 MB, free: 8.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.3457, allocations: 169.6 kB / 428.4 MB, free: 8.195 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.3459, allocations: 226.1 kB / 428.6 MB, free: 7.969 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3461, allocations: 337.9 kB / 428.9 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005758/0.3467, allocations: 249.8 kB / 429.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008216/0.3475, allocations: 0.5981 MB / 429.8 MB, free: 6.613 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.3489, allocations: 0.8974 MB / 430.7 MB, free: 5.547 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.3489, allocations: 4 kB / 430.7 MB, free: 5.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002076/0.351, allocations: 1.23 MB / 431.9 MB, free: 4.301 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.351, allocations: 12.19 kB / 431.9 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/0.3512, allocations: 84 kB / 432 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.781e-05/0.3512, allocations: 19.94 kB / 432 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006979/0.3519, allocations: 199.6 kB / 432.2 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.597e-05/0.3519, allocations: 23.92 kB / 432.2 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009376/0.3529, allocations: 111 kB / 432.3 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-05/0.353, allocations: 75.94 kB / 432.4 MB, free: 3.785 MB / 366.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.0006979/0.3537, allocations: 429.5 kB / 432.8 MB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003331/0.354, allocations: 387.3 kB / 433.2 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/0.3569, allocations: 1.202 MB / 434.4 MB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3569, allocations: 4 kB / 434.4 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3569, allocations: 0 / 434.4 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3569, allocations: 0 / 434.4 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003056/0.36, allocations: 2.109 MB / 436.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-05/0.3601, allocations: 68 kB / 436.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005183/0.3606, allocations: 95.92 kB / 436.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-05/0.3606, allocations: 7.984 kB / 436.7 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.983e-05/0.3607, allocations: 28 kB / 436.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.3607, allocations: 7.938 kB / 436.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3607, allocations: 0 / 436.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002287/0.363, allocations: 1.305 MB / 438 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006506/0.3637, allocations: 480.2 kB / 438.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002821/0.364, allocations: 12 kB / 438.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006481/0.3646, allocations: 31.95 kB / 438.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.3648, allocations: 55.95 kB / 438.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.583e-05/0.3648, allocations: 43.92 kB / 438.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002224/0.3671, allocations: 1.92 MB / 440.5 MB, free: 11.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3671, allocations: 8 kB / 440.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001295/0.3684, allocations: 0.5894 MB / 441.1 MB, free: 10.89 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.001012/0.3694, allocations: 0.7767 MB / 441.9 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00165/0.3711, allocations: 0.8335 MB / 442.8 MB, free: 9.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3711, allocations: 0 / 442.8 MB, free: 9.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007401/0.3718, allocations: 447.2 kB / 443.2 MB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.3735, allocations: 0.5104 MB / 443.7 MB, free: 8.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00563/0.3791, allocations: 4.399 MB / 448.1 MB, free: 3.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.3802, allocations: 1.665 MB / 449.8 MB, free: 2.152 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001287/0.3815, allocations: 369.3 kB / 450.1 MB, free: 1.785 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002237/0.3817, allocations: 151.4 kB / 450.3 MB, free: 1.637 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3817, allocations: 0 / 450.3 MB, free: 1.637 MB / 382.1 MB Notification: Performance of Templates: time 0.19/0.5718, allocations: 31.26 MB / 481.5 MB, free: 95.39 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)