Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.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.001152/0.001152, allocations: 108 kB / 15.6 MB, free: 132 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.001228/0.001229, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.364/1.364, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.001254/0.001254, allocations: 51.94 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.1948, allocations: 46.64 MB / 325.3 MB, free: 1.973 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007619/0.2024, allocations: 7.718 MB / 333 MB, free: 11.74 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0192/0.2216, allocations: 18.51 MB / 351.5 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.2227, allocations: 27.75 kB / 351.6 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002124/0.2248, allocations: 0.8334 MB / 352.4 MB, free: 8.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005055/0.2299, allocations: 1.774 MB / 354.2 MB, free: 7.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003559/0.2335, allocations: 1.287 MB / 355.5 MB, free: 5.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004465/0.238, allocations: 3.167 MB / 358.6 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003496/0.2383, allocations: 224.6 kB / 358.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005366/0.2389, allocations: 0.5015 MB / 359.3 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005145/0.2394, allocations: 0.5435 MB / 359.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.2395, allocations: 44 kB / 359.9 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003063/0.2426, allocations: 1.128 MB / 361.1 MB, free: 124 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001687/0.2428, allocations: 170.8 kB / 361.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005566/0.2433, allocations: 0.6909 MB / 361.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002609/0.246, allocations: 2.207 MB / 364.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.246, allocations: 0 / 364.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.246, allocations: 0 / 364.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.334e-05/0.246, allocations: 0 / 364.1 MB, free: 13.04 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.002799/0.2488, allocations: 2.027 MB / 366.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.2489, allocations: 8.031 kB / 366.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002276/0.2491, allocations: 193.7 kB / 366.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.2508, allocations: 1.377 MB / 367.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.2509, allocations: 20.56 kB / 367.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.443e-05/0.2509, allocations: 31.91 kB / 367.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008466/0.2518, allocations: 433.2 kB / 368.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.2518, allocations: 0 / 368.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.473e-05/0.2519, allocations: 11.98 kB / 368.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.2519, allocations: 12 kB / 368.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.2529, allocations: 482 kB / 368.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.2555, allocations: 1.611 MB / 370.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009713/0.2565, allocations: 371.3 kB / 370.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007254/0.2573, allocations: 417.8 kB / 371.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01402/0.2713, allocations: 15.24 MB / 386.3 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005959/0.2719, allocations: 267 kB / 386.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.134e-06/0.2719, allocations: 3.938 kB / 386.6 MB, free: 4.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002044/0.274, allocations: 0.8407 MB / 387.4 MB, free: 3.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.274, allocations: 55.41 kB / 387.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001557/0.2756, allocations: 1.468 MB / 388.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.2756, allocations: 29.7 kB / 389 MB, free: 1.801 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005388/0.2762, allocations: 0.7227 MB / 389.7 MB, free: 1.074 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.045e-05/0.2763, allocations: 102.7 kB / 389.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.2765, allocations: 126 kB / 389.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.973e-05/0.2766, allocations: 326 kB / 390.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004657/0.277, allocations: 157 kB / 390.4 MB, free: 372 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000569/0.2776, allocations: 359.4 kB / 390.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.2786, allocations: 0.5333 MB / 391.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2787, allocations: 4 kB / 391.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001417/0.2801, allocations: 0.7516 MB / 392 MB, free: 14.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.2801, allocations: 12.03 kB / 392 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.96e-05/0.2802, allocations: 40 kB / 392.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002888/0.2805, allocations: 136.8 kB / 392.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004132/0.2809, allocations: 103.8 kB / 392.3 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005878/0.2815, allocations: 0.685 MB / 393 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005363/0.282, allocations: 67.48 kB / 393.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.944e-05/0.2821, allocations: 36 kB / 393.1 MB, free: 13.43 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.0003934/0.2825, allocations: 277.7 kB / 393.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.2827, allocations: 185.8 kB / 393.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.2846, allocations: 0.7509 MB / 394.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.2847, allocations: 7.984 kB / 394.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2847, allocations: 0 / 394.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2847, allocations: 0 / 394.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.2868, allocations: 1.323 MB / 395.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.976e-05/0.2869, allocations: 32 kB / 395.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.2872, allocations: 52.02 kB / 395.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002323/0.2874, allocations: 120.8 kB / 395.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/0.2875, allocations: 23.98 kB / 395.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000524/0.288, allocations: 0.6617 MB / 396.5 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.288, allocations: 4.031 kB / 396.5 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.2893, allocations: 0.7244 MB / 397.2 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003419/0.2897, allocations: 282.7 kB / 397.5 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.2899, allocations: 15.98 kB / 397.5 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/0.2903, allocations: 23.97 kB / 397.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.2904, allocations: 39.95 kB / 397.6 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-05/0.2905, allocations: 24 kB / 397.6 MB, free: 8.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.2916, allocations: 0.9614 MB / 398.6 MB, free: 7.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2916, allocations: 0 / 398.6 MB, free: 7.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008226/0.2924, allocations: 331.8 kB / 398.9 MB, free: 7.426 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.0007807/0.2932, allocations: 0.5777 MB / 399.5 MB, free: 6.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001292/0.2945, allocations: 0.5195 MB / 400 MB, free: 6.309 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2945, allocations: 0 / 400 MB, free: 6.309 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006548/0.2952, allocations: 288 kB / 400.3 MB, free: 6.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009459/0.2961, allocations: 270.8 kB / 400.6 MB, free: 5.746 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00328/0.2994, allocations: 2.262 MB / 402.8 MB, free: 3.445 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005781/0.3, allocations: 1.149 MB / 404 MB, free: 2.266 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006121/0.3006, allocations: 207.8 kB / 404.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.3008, allocations: 87.44 kB / 404.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3008, allocations: 0 / 404.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of Templates: time 0.0315/0.3323, allocations: 19.8 MB / 424 MB, free: 14.15 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)