Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001149/0.001149, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.391/1.391, allocations: 205.1 MB / 222 MB, free: 4.77 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.001115/0.001115, allocations: 56.34 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2191, allocations: 46.62 MB / 324.7 MB, free: 2.27 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007528/0.2267, allocations: 7.691 MB / 332.4 MB, free: 12.09 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02019/0.2469, allocations: 18.68 MB / 351 MB, free: 9.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.2481, allocations: 31.75 kB / 351.1 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002244/0.2504, allocations: 0.7412 MB / 351.8 MB, free: 9.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005187/0.2556, allocations: 1.461 MB / 353.3 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003926/0.2595, allocations: 1.074 MB / 354.4 MB, free: 6.637 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005658/0.2652, allocations: 3.128 MB / 357.5 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004132/0.2657, allocations: 213.7 kB / 357.7 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008125/0.2665, allocations: 489.5 kB / 358.2 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005544/0.2671, allocations: 0.5473 MB / 358.7 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2672, allocations: 24 kB / 358.7 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004058/0.2712, allocations: 1.109 MB / 359.8 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002144/0.2715, allocations: 158.8 kB / 360 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007189/0.2722, allocations: 0.6637 MB / 360.7 MB, free: 292 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003458/0.2757, allocations: 2.176 MB / 362.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.2757, allocations: 0 / 362.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2757, allocations: 0 / 362.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.48e-05/0.2757, allocations: 0 / 362.8 MB, free: 14.1 MB / 302.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.003005/0.2787, allocations: 2.02 MB / 364.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.2788, allocations: 11.97 kB / 364.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002205/0.279, allocations: 193.7 kB / 365.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/0.2809, allocations: 1.37 MB / 366.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.2809, allocations: 20.56 kB / 366.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.927e-05/0.281, allocations: 35.89 kB / 366.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009026/0.2819, allocations: 433.2 kB / 366.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.2819, allocations: 0 / 366.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.788e-05/0.282, allocations: 11.98 kB / 366.9 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.282, allocations: 8 kB / 366.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.2831, allocations: 478 kB / 367.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002892/0.286, allocations: 1.623 MB / 369 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009558/0.2869, allocations: 375.3 kB / 369.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007236/0.2877, allocations: 409.8 kB / 369.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01446/0.3021, allocations: 15.24 MB / 385 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005663/0.3027, allocations: 259 kB / 385.3 MB, free: 5.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.743e-06/0.3028, allocations: 0 / 385.3 MB, free: 5.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001934/0.3047, allocations: 0.8492 MB / 386.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.3047, allocations: 55.41 kB / 386.2 MB, free: 4.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001662/0.3064, allocations: 1.464 MB / 387.6 MB, free: 2.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.3065, allocations: 33.7 kB / 387.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005564/0.307, allocations: 0.7188 MB / 388.4 MB, free: 2.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.259e-05/0.3071, allocations: 94.72 kB / 388.5 MB, free: 2.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.3073, allocations: 126 kB / 388.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3074, allocations: 330 kB / 388.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004279/0.3079, allocations: 161 kB / 389.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005372/0.3084, allocations: 371.4 kB / 389.4 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00096/0.3094, allocations: 0.5333 MB / 390 MB, free: 368 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.3094, allocations: 4 kB / 390 MB, free: 364 kB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001406/0.3108, allocations: 0.751 MB / 390.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3109, allocations: 4.844 kB / 390.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.897e-05/0.3109, allocations: 40 kB / 390.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003209/0.3112, allocations: 144.8 kB / 390.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003903/0.3117, allocations: 103.8 kB / 391 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005857/0.3122, allocations: 0.681 MB / 391.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005355/0.3128, allocations: 83.55 kB / 391.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.685e-05/0.3129, allocations: 36 kB / 391.8 MB, free: 14.48 MB / 334.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.0003558/0.3132, allocations: 265.7 kB / 392.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.3134, allocations: 185.8 kB / 392.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/0.3153, allocations: 0.7541 MB / 393 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3153, allocations: 8 kB / 393 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.3153, allocations: 0 / 393 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.3153, allocations: 0 / 393 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00209/0.3174, allocations: 1.319 MB / 394.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.903e-05/0.3175, allocations: 32 kB / 394.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002526/0.3177, allocations: 47.95 kB / 394.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.318, allocations: 124.9 kB / 394.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.318, allocations: 19.98 kB / 394.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005372/0.3186, allocations: 0.6656 MB / 395.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3186, allocations: 0 / 395.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.3198, allocations: 0.7202 MB / 395.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003354/0.3202, allocations: 278.7 kB / 396.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001629/0.3203, allocations: 11.98 kB / 396.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004253/0.3208, allocations: 27.97 kB / 396.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.3209, allocations: 35.95 kB / 396.3 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.071e-05/0.3209, allocations: 23.94 kB / 396.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001134/0.3221, allocations: 0.9692 MB / 397.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3221, allocations: 7.938 kB / 397.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000834/0.3229, allocations: 327.8 kB / 397.6 MB, free: 8.488 MB / 334.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.0008989/0.3238, allocations: 0.5816 MB / 398.2 MB, free: 7.898 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.3251, allocations: 0.5083 MB / 398.7 MB, free: 7.379 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3251, allocations: 0 / 398.7 MB, free: 7.379 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006237/0.3257, allocations: 287.5 kB / 399 MB, free: 7.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009279/0.3267, allocations: 246.9 kB / 399.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003456/0.3301, allocations: 2.647 MB / 401.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006206/0.3308, allocations: 1.157 MB / 403 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000668/0.3314, allocations: 199.9 kB / 403.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.3316, allocations: 87.44 kB / 403.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of SimCode: time 5.82e-07/0.3316, allocations: 4 kB / 403.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of Templates: time 0.03184/0.3634, allocations: 19.07 MB / 422.4 MB, free: 15.59 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)