Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 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.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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.001311, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 208 kB / 19.41 MB, free: 3.648 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.6 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.001911/0.001911, allocations: 71.88 kB / 359.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2251, allocations: 50.54 MB / 410.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02603/0.2511, allocations: 26.79 MB / 437 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02987/0.281, allocations: 22.43 MB / 459.4 MB, free: 36 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004458/0.2855, allocations: 174.6 kB / 459.6 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004744/0.2902, allocations: 1.781 MB / 461.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.3006, allocations: 3.251 MB / 464.6 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005101/0.3057, allocations: 1.627 MB / 466.2 MB, free: 9.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01961/0.3253, allocations: 12.87 MB / 479.1 MB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.3265, allocations: 0.5116 MB / 479.6 MB, free: 11.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003041/0.3295, allocations: 2.107 MB / 481.7 MB, free: 9.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002572/0.3321, allocations: 2.103 MB / 483.8 MB, free: 7.473 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003447/0.3325, allocations: 136 kB / 484 MB, free: 7.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004011/0.3365, allocations: 1.537 MB / 485.5 MB, free: 5.801 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006897/0.3372, allocations: 0.5932 MB / 486.1 MB, free: 5.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002973/0.3401, allocations: 2.628 MB / 488.7 MB, free: 2.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009172/0.3493, allocations: 6.679 MB / 495.4 MB, free: 11.85 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3493, allocations: 0 / 495.4 MB, free: 11.85 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3493, allocations: 0 / 495.4 MB, free: 11.85 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001585/0.3495, allocations: 0 / 495.4 MB, free: 11.85 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.01056/0.36, allocations: 6.93 MB / 0.4906 GB, free: 4.816 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3601, allocations: 12.03 kB / 0.4906 GB, free: 4.805 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009838/0.361, allocations: 0.7802 MB / 0.4913 GB, free: 4.02 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007262/0.3683, allocations: 4.656 MB / 0.4959 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.546e-05/0.3684, allocations: 66 kB / 0.4959 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002501/0.3686, allocations: 103.9 kB / 0.496 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002369/0.371, allocations: 1.305 MB / 0.4973 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.371, allocations: 0 / 0.4973 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/0.3711, allocations: 39.98 kB / 0.4974 GB, free: 13.75 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.582e-05/0.3712, allocations: 35.98 kB / 0.4974 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00264/0.3738, allocations: 1.48 MB / 0.4988 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009944/0.3838, allocations: 5.629 MB / 0.5043 GB, free: 6.516 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.3855, allocations: 0.8679 MB / 0.5052 GB, free: 5.637 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.3872, allocations: 1.055 MB / 0.5062 GB, free: 4.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2287/0.6158, allocations: 61.06 MB / 0.5658 GB, free: 102.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000851/0.6167, allocations: 0.5691 MB / 0.5664 GB, free: 102.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 2.705e-06/0.6167, allocations: 0 / 0.5664 GB, free: 102.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002821/0.6195, allocations: 1.903 MB / 0.5683 GB, free: 102.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.6195, allocations: 69.39 kB / 0.5683 GB, free: 102.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004914/0.6245, allocations: 5.589 MB / 0.5738 GB, free: 97.68 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.6246, allocations: 37.7 kB / 0.5738 GB, free: 97.63 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001606/0.6262, allocations: 2.968 MB / 0.5767 GB, free: 94.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.6264, allocations: 312.2 kB / 0.577 GB, free: 94.48 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000366/0.6268, allocations: 431 kB / 0.5774 GB, free: 94.05 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.32e-05/0.6268, allocations: 308.6 kB / 0.5777 GB, free: 93.75 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007168/0.6275, allocations: 399.8 kB / 0.5781 GB, free: 93.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008851/0.6284, allocations: 1.085 MB / 0.5792 GB, free: 91.97 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001681/0.6301, allocations: 1.617 MB / 0.5807 GB, free: 90.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.6301, allocations: 8 kB / 0.5807 GB, free: 90.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002895/0.633, allocations: 2.239 MB / 0.5829 GB, free: 87.85 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.633, allocations: 15.94 kB / 0.5829 GB, free: 87.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001668/0.6332, allocations: 167.6 kB / 0.5831 GB, free: 87.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.268e-05/0.6332, allocations: 32 kB / 0.5831 GB, free: 87.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.6343, allocations: 359.4 kB / 0.5835 GB, free: 87.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.55e-05/0.6343, allocations: 47.8 kB / 0.5835 GB, free: 87.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/0.636, allocations: 193 kB / 0.5837 GB, free: 87.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.6361, allocations: 120 kB / 0.5838 GB, free: 86.98 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.001119/0.6373, allocations: 0.7199 MB / 0.5845 GB, free: 86.27 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006468/0.6379, allocations: 0.753 MB / 0.5853 GB, free: 85.51 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003782/0.6417, allocations: 2.144 MB / 0.5874 GB, free: 83.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.6417, allocations: 8 kB / 0.5874 GB, free: 83.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.6417, allocations: 0 / 0.5874 GB, free: 83.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.6417, allocations: 7.812 kB / 0.5874 GB, free: 83.42 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00481/0.6465, allocations: 3.617 MB / 0.5909 GB, free: 79.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000153/0.6467, allocations: 146.2 kB / 0.591 GB, free: 79.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007153/0.6474, allocations: 143.8 kB / 0.5912 GB, free: 79.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.6474, allocations: 4 kB / 0.5912 GB, free: 79.49 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.532e-05/0.6475, allocations: 68.05 kB / 0.5912 GB, free: 79.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.6475, allocations: 0 / 0.5912 GB, free: 79.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.6475, allocations: 4 kB / 0.5913 GB, free: 79.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002849/0.6503, allocations: 2.188 MB / 0.5934 GB, free: 77.21 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/0.6519, allocations: 0.8537 MB / 0.5942 GB, free: 76.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005301/0.6524, allocations: 12 kB / 0.5942 GB, free: 76.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.6535, allocations: 43.95 kB / 0.5943 GB, free: 76.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001832/0.6537, allocations: 92.5 kB / 0.5944 GB, free: 76.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.6538, allocations: 71.98 kB / 0.5944 GB, free: 76.12 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004026/0.6578, allocations: 3.605 MB / 0.598 GB, free: 72.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.6578, allocations: 0 / 0.598 GB, free: 72.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002298/0.6601, allocations: 1.082 MB / 0.599 GB, free: 71.54 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.001345/0.6615, allocations: 1.182 MB / 0.6002 GB, free: 70.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.6635, allocations: 1.373 MB / 0.6015 GB, free: 68.99 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.6635, allocations: 0 / 0.6015 GB, free: 68.99 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008842/0.6644, allocations: 0.7315 MB / 0.6022 GB, free: 68.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004668/0.6691, allocations: 1.207 MB / 0.6034 GB, free: 67 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008955/0.678, allocations: 8.281 MB / 0.6115 GB, free: 58.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/0.6792, allocations: 2.588 MB / 0.614 GB, free: 56.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001807/0.681, allocations: 0.6924 MB / 0.6147 GB, free: 55.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003341/0.6814, allocations: 279.4 kB / 0.615 GB, free: 55.11 MB / 462.1 MB Notification: Performance of SimCode: time 1.313e-06/0.6814, allocations: 4 kB / 0.615 GB, free: 55.1 MB / 462.1 MB Notification: Performance of Templates: time 0.07808/0.7595, allocations: 55.77 MB / 0.6694 GB, free: 15.7 MB / 478.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)