Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.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 trunk/package.mo", uses=false) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001352/0.001352, allocations: 117.6 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 200.7 kB / 18.73 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 59.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2385, allocations: 50.55 MB / 409.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02293/0.2615, allocations: 26.72 MB / 436 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02656/0.2881, allocations: 22.36 MB / 458.3 MB, free: 340 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005604/0.2937, allocations: 178.5 kB / 458.5 MB, free: 160 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004909/0.2988, allocations: 1.77 MB / 460.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01089/0.3097, allocations: 3.216 MB / 463.5 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00516/0.3148, allocations: 1.623 MB / 465.1 MB, free: 9.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01841/0.3333, allocations: 12.83 MB / 477.9 MB, free: 12.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001447/0.3348, allocations: 0.8631 MB / 478.8 MB, free: 11.74 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003089/0.3379, allocations: 2.107 MB / 480.9 MB, free: 9.625 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002976/0.3408, allocations: 2.103 MB / 483 MB, free: 7.508 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003587/0.3412, allocations: 136 kB / 483.1 MB, free: 7.375 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00424/0.3455, allocations: 1.537 MB / 484.7 MB, free: 5.836 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005501/0.346, allocations: 0.601 MB / 485.3 MB, free: 5.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002754/0.3488, allocations: 2.627 MB / 487.9 MB, free: 2.586 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006996/0.3558, allocations: 6.626 MB / 494.5 MB, free: 11.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3558, allocations: 8 kB / 494.5 MB, free: 11.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3558, allocations: 4 kB / 494.5 MB, free: 11.92 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.421e-05/0.3559, allocations: 0 / 494.5 MB, free: 11.92 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.009036/0.365, allocations: 6.674 MB / 0.4895 GB, free: 5.148 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.365, allocations: 8.031 kB / 0.4895 GB, free: 5.141 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/0.3661, allocations: 0.7448 MB / 0.4902 GB, free: 4.387 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00688/0.373, allocations: 4.593 MB / 0.4947 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.11e-05/0.3731, allocations: 66 kB / 0.4948 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.3733, allocations: 99.91 kB / 0.4948 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002307/0.3756, allocations: 1.305 MB / 0.4961 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.3756, allocations: 0 / 0.4961 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.3758, allocations: 32 kB / 0.4962 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-05/0.3758, allocations: 43.97 kB / 0.4962 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002507/0.3783, allocations: 1.488 MB / 0.4976 GB, free: 12.65 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008804/0.3871, allocations: 5.616 MB / 0.5031 GB, free: 6.945 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.3888, allocations: 0.9812 MB / 0.5041 GB, free: 5.953 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001531/0.3904, allocations: 1.223 MB / 0.5053 GB, free: 4.738 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3062/0.6965, allocations: 61.05 MB / 0.5649 GB, free: 103.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00089/0.6975, allocations: 0.5623 MB / 0.5655 GB, free: 103.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 4.198e-06/0.6975, allocations: 0 / 0.5655 GB, free: 103.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.003079/0.7006, allocations: 1.873 MB / 0.5673 GB, free: 103.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.7006, allocations: 64.97 kB / 0.5673 GB, free: 103.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005584/0.7062, allocations: 5.588 MB / 0.5728 GB, free: 98.54 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.245e-05/0.7063, allocations: 37.7 kB / 0.5728 GB, free: 98.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001669/0.708, allocations: 2.946 MB / 0.5757 GB, free: 95.56 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.7082, allocations: 298 kB / 0.576 GB, free: 95.28 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003803/0.7086, allocations: 425.8 kB / 0.5764 GB, free: 94.86 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.241e-05/0.7086, allocations: 301.1 kB / 0.5767 GB, free: 94.56 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007242/0.7093, allocations: 407 kB / 0.5771 GB, free: 94.17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008904/0.7102, allocations: 1.089 MB / 0.5781 GB, free: 92.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001702/0.7119, allocations: 1.609 MB / 0.5797 GB, free: 90.89 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/0.712, allocations: 7.812 kB / 0.5797 GB, free: 90.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002691/0.7147, allocations: 2.213 MB / 0.5819 GB, free: 88.69 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.7147, allocations: 22.91 kB / 0.5819 GB, free: 88.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001708/0.7149, allocations: 160 kB / 0.5821 GB, free: 88.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.29e-05/0.7149, allocations: 32 kB / 0.5821 GB, free: 88.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.716, allocations: 355.4 kB / 0.5824 GB, free: 88.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.719e-05/0.716, allocations: 55.66 kB / 0.5825 GB, free: 88.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.7176, allocations: 182 kB / 0.5827 GB, free: 87.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.7177, allocations: 124 kB / 0.5828 GB, free: 87.79 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0009218/0.7186, allocations: 0.7159 MB / 0.5835 GB, free: 87.06 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004351/0.7191, allocations: 0.714 MB / 0.5842 GB, free: 86.34 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003575/0.7227, allocations: 2.158 MB / 0.5863 GB, free: 84.25 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.7227, allocations: 8 kB / 0.5863 GB, free: 84.24 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.7227, allocations: 0 / 0.5863 GB, free: 84.24 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.7227, allocations: 7.984 kB / 0.5863 GB, free: 84.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00408/0.7268, allocations: 3.605 MB / 0.5898 GB, free: 80.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001514/0.727, allocations: 136 kB / 0.5899 GB, free: 80.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007248/0.7277, allocations: 151.9 kB / 0.5901 GB, free: 80.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.7277, allocations: 4 kB / 0.5901 GB, free: 80.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-05/0.7278, allocations: 67.92 kB / 0.5902 GB, free: 80.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.7278, allocations: 7.938 kB / 0.5902 GB, free: 80.22 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7278, allocations: 0 / 0.5902 GB, free: 80.22 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00258/0.7304, allocations: 2.153 MB / 0.5923 GB, free: 78.04 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009276/0.7313, allocations: 0.8201 MB / 0.5931 GB, free: 77.19 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006021/0.732, allocations: 15.98 kB / 0.5931 GB, free: 77.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.7331, allocations: 31.97 kB / 0.5931 GB, free: 77.14 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.7333, allocations: 96.48 kB / 0.5932 GB, free: 77.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.134e-05/0.7333, allocations: 75.92 kB / 0.5933 GB, free: 76.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003766/0.7371, allocations: 3.608 MB / 0.5968 GB, free: 73.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7371, allocations: 3.938 kB / 0.5968 GB, free: 73.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002089/0.7392, allocations: 1.076 MB / 0.5979 GB, free: 72.36 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001468/0.7407, allocations: 1.169 MB / 0.599 GB, free: 71.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002058/0.7428, allocations: 1.439 MB / 0.6004 GB, free: 69.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.7428, allocations: 256 / 0.6004 GB, free: 69.75 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009093/0.7437, allocations: 0.7706 MB / 0.6011 GB, free: 68.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004231/0.7479, allocations: 1.2 MB / 0.6023 GB, free: 67.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008595/0.7566, allocations: 8.093 MB / 0.6102 GB, free: 59.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001422/0.758, allocations: 2.588 MB / 0.6128 GB, free: 57 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001672/0.7597, allocations: 0.6885 MB / 0.6134 GB, free: 56.31 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/0.76, allocations: 287.4 kB / 0.6137 GB, free: 56.03 MB / 462.1 MB Notification: Performance of SimCode: time 4e-07/0.76, allocations: 0 / 0.6137 GB, free: 56.03 MB / 462.1 MB Notification: Performance of Templates: time 0.07339/0.8334, allocations: 55.52 MB / 0.6679 GB, free: 0.7266 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)