Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.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: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001632/0.001632, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009921/0.000992, allocations: 88.55 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.237e-05/4.261e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1184, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3676/0.486, allocations: 90.14 MB / 492.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.4863, allocations: 82.33 kB / 492.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05685/0.5432, allocations: 22.78 MB / 0.5031 GB, free: 10.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5432, allocations: 0 / 0.5031 GB, free: 10.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.375e-05/0.5432, allocations: 21.12 kB / 0.5031 GB, free: 10.01 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.002279/0.5455, allocations: 1.159 MB / 0.5042 GB, free: 8.809 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.5456, allocations: 8.031 kB / 0.5042 GB, free: 8.801 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002228/0.5458, allocations: 158.1 kB / 0.5044 GB, free: 8.637 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001766/0.5476, allocations: 339.3 kB / 0.5047 GB, free: 8.305 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007542/0.5483, allocations: 0.5447 MB / 0.5052 GB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.284e-05/0.5484, allocations: 74 kB / 0.5053 GB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.5486, allocations: 104 kB / 0.5054 GB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.5501, allocations: 0.9613 MB / 0.5063 GB, free: 6.566 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.722e-05/0.5502, allocations: 3.938 kB / 0.5063 GB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.734e-05/0.5502, allocations: 44 kB / 0.5064 GB, free: 6.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.5503, allocations: 28 kB / 0.5064 GB, free: 6.492 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.5516, allocations: 0.7781 MB / 0.5072 GB, free: 5.711 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005099/0.5567, allocations: 3.687 MB / 0.5108 GB, free: 1.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002156/0.5588, allocations: 1.852 MB / 0.5126 GB, free: 15.74 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007257/0.5596, allocations: 416 kB / 0.513 GB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001792/0.5598, allocations: 187 kB / 0.5131 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007385/0.5605, allocations: 457.5 kB / 0.5136 GB, free: 14.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=84): time 2.515e-06/0.5605, allocations: 0 / 0.5136 GB, free: 14.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=84): time 0.001724/0.5623, allocations: 0.8332 MB / 0.5144 GB, free: 13.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.5624, allocations: 192.7 kB / 0.5146 GB, free: 13.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004931/0.5629, allocations: 407.9 kB / 0.515 GB, free: 13.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.201e-05/0.5629, allocations: 47.52 kB / 0.515 GB, free: 13.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.5633, allocations: 423.6 kB / 0.5154 GB, free: 12.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/0.5635, allocations: 275.9 kB / 0.5157 GB, free: 12.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.5635, allocations: 20 kB / 0.5157 GB, free: 12.38 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.5637, allocations: 370.8 kB / 0.516 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003847/0.5641, allocations: 230 kB / 0.5163 GB, free: 11.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005457/0.5646, allocations: 459.4 kB / 0.5167 GB, free: 11.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005062/0.5652, allocations: 286 kB / 0.517 GB, free: 10.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.5652, allocations: 4 kB / 0.517 GB, free: 10.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001706/0.5669, allocations: 0.9546 MB / 0.5179 GB, free: 9.992 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.5669, allocations: 8 kB / 0.5179 GB, free: 9.984 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.5669, allocations: 4.062 kB / 0.5179 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008274/0.5678, allocations: 273.1 kB / 0.5182 GB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005489/0.5683, allocations: 148.3 kB / 0.5183 GB, free: 9.566 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004811/0.5732, allocations: 4.376 MB / 0.5226 GB, free: 4.934 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006234/0.5738, allocations: 103.3 kB / 0.5227 GB, free: 4.832 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.647e-05/0.5739, allocations: 32.75 kB / 0.5227 GB, free: 4.801 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001959/0.5741, allocations: 172.6 kB / 0.5229 GB, free: 4.625 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.5742, allocations: 71.16 kB / 0.523 GB, free: 4.555 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.5759, allocations: 0.9072 MB / 0.5238 GB, free: 3.633 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.5759, allocations: 11.95 kB / 0.5239 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.5759, allocations: 0 / 0.5239 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.5759, allocations: 7.984 kB / 0.5239 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.5787, allocations: 1.865 MB / 0.5257 GB, free: 1.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.5787, allocations: 5.312 kB / 0.5257 GB, free: 1.668 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004279/0.5791, allocations: 107.9 kB / 0.5258 GB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007052/0.5798, allocations: 260.5 kB / 0.526 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.028e-05/0.5799, allocations: 27.89 kB / 0.5261 GB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004497/0.5844, allocations: 4.339 MB / 0.5303 GB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.5844, allocations: 3.953 kB / 0.5303 GB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.5865, allocations: 1.296 MB / 0.5316 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/0.5868, allocations: 208.2 kB / 0.5318 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.641e-05/0.5869, allocations: 24 kB / 0.5318 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.5873, allocations: 47.97 kB / 0.5318 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.5875, allocations: 64.69 kB / 0.5319 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.81e-05/0.5876, allocations: 34.38 kB / 0.5319 GB, free: 10.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003725/0.588, allocations: 313.6 kB / 0.5322 GB, free: 10.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.588, allocations: 0 / 0.5322 GB, free: 10.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001125/0.5891, allocations: 331.2 kB / 0.5326 GB, free: 10.32 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.002503/0.5916, allocations: 2.058 MB / 0.5346 GB, free: 8.219 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.5933, allocations: 1.014 MB / 0.5356 GB, free: 7.176 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5933, allocations: 0 / 0.5356 GB, free: 7.176 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.5944, allocations: 0.6909 MB / 0.5362 GB, free: 6.461 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.5949, allocations: 109.2 kB / 0.5363 GB, free: 6.359 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.5977, allocations: 1.374 MB / 0.5377 GB, free: 4.945 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005816/0.5983, allocations: 1.022 MB / 0.5387 GB, free: 3.898 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003524/0.5986, allocations: 81.33 kB / 0.5388 GB, free: 3.816 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000378/0.599, allocations: 319.3 kB / 0.5391 GB, free: 3.504 MB / 410.7 MB Notification: Performance of SimCode: time 8.42e-07/0.599, allocations: 0 / 0.5391 GB, free: 3.504 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03417/0.6332, allocations: 17.81 MB / 0.5565 GB, free: 2.055 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.6334, allocations: 203.9 kB / 0.5566 GB, free: 1.824 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.477/3.11, allocations: 4 kB / 0.5566 GB, free: 1.82 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat