Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 120.4 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 204 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.41/1.41, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 67.88 kB / 359.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2244, allocations: 50.54 MB / 410.2 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008565/0.233, allocations: 8.052 MB / 418.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02193/0.2549, allocations: 19.52 MB / 437.8 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009421/0.2559, allocations: 59.5 kB / 437.8 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002193/0.2581, allocations: 0.8554 MB / 438.7 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005366/0.2634, allocations: 1.813 MB / 440.5 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003886/0.2673, allocations: 1.35 MB / 441.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005072/0.2724, allocations: 3.296 MB / 445.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.2727, allocations: 136.6 kB / 445.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007743/0.2735, allocations: 0.5639 MB / 445.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006382/0.2741, allocations: 0.559 MB / 446.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.02e-05/0.2742, allocations: 48 kB / 446.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003431/0.2776, allocations: 1.451 MB / 447.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.2778, allocations: 170.7 kB / 448.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006651/0.2785, allocations: 0.6792 MB / 448.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003296/0.2818, allocations: 2.221 MB / 451 MB, free: 8.527 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.2818, allocations: 4 kB / 451 MB, free: 8.523 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2818, allocations: 0 / 451 MB, free: 8.523 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.2818, allocations: 0 / 451 MB, free: 8.523 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003147/0.2849, allocations: 2.074 MB / 453 MB, free: 6.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.285, allocations: 12.03 kB / 453.1 MB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002489/0.2852, allocations: 202.7 kB / 453.3 MB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/0.2872, allocations: 1.363 MB / 454.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.2872, allocations: 20.56 kB / 454.6 MB, free: 4.723 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.36e-05/0.2873, allocations: 24 kB / 454.7 MB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009318/0.2882, allocations: 437.1 kB / 455.1 MB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.2882, allocations: 3.938 kB / 455.1 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.484e-05/0.2883, allocations: 12 kB / 455.1 MB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.2883, allocations: 15.92 kB / 455.1 MB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.2894, allocations: 474.1 kB / 455.6 MB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002861/0.2923, allocations: 1.619 MB / 457.2 MB, free: 2.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009433/0.2932, allocations: 335.4 kB / 457.5 MB, free: 1.746 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007346/0.294, allocations: 369.8 kB / 457.9 MB, free: 1.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01708/0.311, allocations: 15.52 MB / 473.4 MB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000658/0.3117, allocations: 267.1 kB / 473.7 MB, free: 15.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.104e-06/0.3117, allocations: 0 / 473.7 MB, free: 15.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002182/0.3139, allocations: 0.8456 MB / 474.5 MB, free: 14.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.3139, allocations: 63.33 kB / 474.6 MB, free: 14.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/0.3157, allocations: 1.459 MB / 476 MB, free: 13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.3158, allocations: 29.7 kB / 476.1 MB, free: 12.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000658/0.3164, allocations: 0.7193 MB / 476.8 MB, free: 12.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.3165, allocations: 99.2 kB / 476.9 MB, free: 12.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001892/0.3167, allocations: 134 kB / 477 MB, free: 12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3168, allocations: 322 kB / 477.3 MB, free: 11.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004754/0.3173, allocations: 169 kB / 477.5 MB, free: 11.51 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006026/0.3179, allocations: 355.4 kB / 477.8 MB, free: 11.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.319, allocations: 0.5256 MB / 478.4 MB, free: 10.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.319, allocations: 4 kB / 478.4 MB, free: 10.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001558/0.3206, allocations: 0.7599 MB / 479.1 MB, free: 9.684 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.3206, allocations: 8 kB / 479.1 MB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.55e-05/0.3206, allocations: 36 kB / 479.2 MB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000328/0.321, allocations: 149.1 kB / 479.3 MB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004148/0.3214, allocations: 107.8 kB / 479.4 MB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000644/0.322, allocations: 0.6812 MB / 480.1 MB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005739/0.3226, allocations: 79.64 kB / 480.2 MB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.13e-05/0.3227, allocations: 32 kB / 480.2 MB, free: 8.57 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004416/0.3231, allocations: 277.7 kB / 480.5 MB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.3233, allocations: 202.7 kB / 480.7 MB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/0.3252, allocations: 0.7269 MB / 481.4 MB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.3252, allocations: 4 kB / 481.4 MB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3252, allocations: 0 / 481.4 MB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3252, allocations: 3.984 kB / 481.4 MB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.3275, allocations: 1.315 MB / 482.7 MB, free: 5.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.373e-05/0.3276, allocations: 36 kB / 482.8 MB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/0.3278, allocations: 48.02 kB / 482.8 MB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002448/0.3281, allocations: 124.8 kB / 482.9 MB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.3281, allocations: 19.94 kB / 483 MB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006162/0.3287, allocations: 0.6695 MB / 483.6 MB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3287, allocations: 3.938 kB / 483.6 MB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.3301, allocations: 0.714 MB / 484.3 MB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004701/0.3306, allocations: 291.7 kB / 484.6 MB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/0.3307, allocations: 8 kB / 484.6 MB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004349/0.3311, allocations: 31.95 kB / 484.7 MB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.3313, allocations: 39.91 kB / 484.7 MB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.951e-05/0.3313, allocations: 27.98 kB / 484.7 MB, free: 3.879 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001265/0.3326, allocations: 0.9571 MB / 485.7 MB, free: 2.902 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3326, allocations: 0 / 485.7 MB, free: 2.902 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008814/0.3335, allocations: 331.6 kB / 486 MB, free: 2.578 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008571/0.3343, allocations: 0.577 MB / 486.6 MB, free: 1.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.3356, allocations: 0.4966 MB / 487.1 MB, free: 1.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3356, allocations: 0 / 487.1 MB, free: 1.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006759/0.3363, allocations: 283.4 kB / 487.4 MB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.3376, allocations: 318.7 kB / 487.7 MB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003486/0.3411, allocations: 2.239 MB / 489.9 MB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007459/0.3419, allocations: 1.153 MB / 491.1 MB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005146/0.3424, allocations: 199.9 kB / 491.3 MB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.3425, allocations: 87.42 kB / 491.4 MB, free: 13.13 MB / 414.1 MB Notification: Performance of SimCode: time 1.021e-06/0.3425, allocations: 4 kB / 491.4 MB, free: 13.12 MB / 414.1 MB Notification: Performance of Templates: time 0.03578/0.3783, allocations: 19.91 MB / 0.4993 GB, free: 9.371 MB / 430.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)