Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009517/0.0009517, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 226.6 MB / 244.3 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008637/0.0008639, allocations: 110.7 kB / 296.4 MB, free: 6.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002645/0.0002645, allocations: 4 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2446, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.004807/0.2495, allocations: 7.059 MB / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01361/0.2631, allocations: 17.7 MB / 432.3 MB, free: 3.012 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.2643, allocations: 35.75 kB / 432.3 MB, free: 2.977 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0021/0.2664, allocations: 0.7044 MB / 433 MB, free: 2.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005392/0.2718, allocations: 1.414 MB / 434.4 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003588/0.2754, allocations: 1.042 MB / 435.5 MB, free: 15.8 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004436/0.2799, allocations: 3.082 MB / 438.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/0.2803, allocations: 213.4 kB / 438.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006219/0.2809, allocations: 0.4898 MB / 439.2 MB, free: 11.98 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005211/0.2814, allocations: 0.5164 MB / 439.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.076e-05/0.2815, allocations: 27.94 kB / 439.8 MB, free: 11.44 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002854/0.2844, allocations: 1.307 MB / 441.1 MB, free: 10.13 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.2845, allocations: 139 kB / 441.2 MB, free: 9.992 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002583/0.2848, allocations: 328.8 kB / 441.5 MB, free: 9.664 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001471/0.2863, allocations: 1.566 MB / 443.1 MB, free: 8.094 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.2863, allocations: 4 kB / 443.1 MB, free: 8.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2863, allocations: 0 / 443.1 MB, free: 8.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.211e-05/0.2863, allocations: 0 / 443.1 MB, free: 8.09 MB / 314.7 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.002715/0.2891, allocations: 1.815 MB / 444.9 MB, free: 6.215 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.2891, allocations: 8.031 kB / 444.9 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002159/0.2893, allocations: 193.8 kB / 445.1 MB, free: 6.016 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001843/0.2912, allocations: 1.285 MB / 446.4 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.2912, allocations: 20.56 kB / 446.4 MB, free: 4.641 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.011e-05/0.2913, allocations: 24 kB / 446.4 MB, free: 4.617 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009024/0.2922, allocations: 453.1 kB / 446.9 MB, free: 4.168 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2922, allocations: 0 / 446.9 MB, free: 4.168 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.404e-05/0.2923, allocations: 12 kB / 446.9 MB, free: 4.156 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.2923, allocations: 16 kB / 446.9 MB, free: 4.141 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.2934, allocations: 0.5059 MB / 447.4 MB, free: 3.637 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.296, allocations: 1.627 MB / 449.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009573/0.297, allocations: 419.3 kB / 449.5 MB, free: 1.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007975/0.2978, allocations: 425.9 kB / 449.9 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01542/0.3132, allocations: 15.54 MB / 465.4 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006895/0.314, allocations: 286.9 kB / 465.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.645e-06/0.314, allocations: 0 / 465.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.002415/0.3164, allocations: 0.905 MB / 466.6 MB, free: 14.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.3165, allocations: 63.39 kB / 466.7 MB, free: 14.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/0.3184, allocations: 1.44 MB / 468.1 MB, free: 12.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.891e-05/0.3184, allocations: 33.7 kB / 468.1 MB, free: 12.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005289/0.319, allocations: 0.7225 MB / 468.9 MB, free: 11.87 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.824e-05/0.319, allocations: 98.64 kB / 469 MB, free: 11.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-05/0.3191, allocations: 12 kB / 469 MB, free: 11.76 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.3192, allocations: 326 kB / 469.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004357/0.3196, allocations: 177 kB / 469.5 MB, free: 11.26 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005295/0.3202, allocations: 383.4 kB / 469.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.3206, allocations: 220.6 kB / 470 MB, free: 10.58 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3207, allocations: 0 / 470 MB, free: 10.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001396/0.3221, allocations: 0.7861 MB / 470.8 MB, free: 9.785 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3221, allocations: 8 kB / 470.8 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.998e-05/0.3221, allocations: 40 kB / 470.9 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002873/0.3224, allocations: 145.3 kB / 471 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004047/0.3229, allocations: 119.8 kB / 471.1 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005344/0.3234, allocations: 0.6773 MB / 471.8 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005288/0.3239, allocations: 79.41 kB / 471.9 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.068e-05/0.324, allocations: 36 kB / 471.9 MB, free: 8.66 MB / 346.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003591/0.3244, allocations: 275.3 kB / 472.2 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.3245, allocations: 185.8 kB / 472.4 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.3264, allocations: 0.7932 MB / 473.2 MB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3264, allocations: 4 kB / 473.2 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3264, allocations: 0 / 473.2 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.3264, allocations: 0 / 473.2 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.3285, allocations: 1.351 MB / 474.5 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.011e-05/0.3285, allocations: 32 kB / 474.6 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002584/0.3288, allocations: 55.89 kB / 474.6 MB, free: 5.883 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002256/0.329, allocations: 132.9 kB / 474.7 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.407e-05/0.3291, allocations: 16 kB / 474.8 MB, free: 5.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005371/0.3296, allocations: 0.6733 MB / 475.4 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3296, allocations: 128 / 475.4 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.3309, allocations: 0.7475 MB / 476.2 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003591/0.3313, allocations: 286.7 kB / 476.5 MB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.3314, allocations: 8 kB / 476.5 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004295/0.3319, allocations: 43.95 kB / 476.5 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.332, allocations: 39.95 kB / 476.5 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.883e-05/0.332, allocations: 16 kB / 476.6 MB, free: 3.852 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001167/0.3332, allocations: 0.9454 MB / 477.5 MB, free: 2.887 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3332, allocations: 0 / 477.5 MB, free: 2.887 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008848/0.3341, allocations: 323.8 kB / 477.8 MB, free: 2.57 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008055/0.3349, allocations: 0.5655 MB / 478.4 MB, free: 1.996 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.3362, allocations: 0.5473 MB / 478.9 MB, free: 1.438 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.3362, allocations: 3.859 kB / 478.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006433/0.3368, allocations: 315.7 kB / 479.2 MB, free: 1.113 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.338, allocations: 298 kB / 479.5 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00352/0.3416, allocations: 2.557 MB / 482.1 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007051/0.3423, allocations: 1.145 MB / 483.2 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.3425, allocations: 87.44 kB / 483.3 MB, free: 12.95 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.3425, allocations: 0 / 483.3 MB, free: 12.95 MB / 362.7 MB Notification: Performance of Templates: time 0.03098/0.3735, allocations: 25.62 MB / 0.497 GB, free: 3.379 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)