Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 176.5 kB / 8.345 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 221.5 MB / 230.3 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008786/0.0008787, allocations: 90.06 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.71e-05/1.713e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08998/0.09001, allocations: 50.41 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3219/0.412, allocations: 88.58 MB / 476.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.4122, allocations: 79.95 kB / 476.2 MB, free: 6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05369/0.4659, allocations: 21.8 MB / 498 MB, free: 24 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4659, allocations: 0 / 498 MB, free: 24 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.743e-05/0.466, allocations: 20 kB / 498 MB, free: 4 kB / 362.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.002449/0.4685, allocations: 1.142 MB / 499.2 MB, free: 14.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.4685, allocations: 8.031 kB / 499.2 MB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00156/0.4701, allocations: 302.4 kB / 499.5 MB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008043/0.4709, allocations: 0.5277 MB / 0.4883 GB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/0.471, allocations: 35.95 kB / 0.4883 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.4711, allocations: 59.94 kB / 0.4884 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00126/0.4723, allocations: 0.7303 MB / 0.4891 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.4737, allocations: 0.8012 MB / 0.4899 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.381e-05/0.4738, allocations: 7.922 kB / 0.4899 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-05/0.4738, allocations: 0 / 0.4899 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.4739, allocations: 28 kB / 0.4899 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004898/0.4788, allocations: 3.406 MB / 0.4932 GB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/0.4809, allocations: 1.822 MB / 0.495 GB, free: 6.625 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005463/0.4814, allocations: 359.9 kB / 0.4954 GB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/0.4816, allocations: 89.89 kB / 0.4954 GB, free: 6.164 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006678/0.4822, allocations: 436 kB / 0.4959 GB, free: 5.707 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.565e-06/0.4822, allocations: 0 / 0.4959 GB, free: 5.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.001748/0.484, allocations: 0.8099 MB / 0.4967 GB, free: 4.879 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.751e-05/0.4841, allocations: 192.7 kB / 0.4968 GB, free: 4.645 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/0.4845, allocations: 353.1 kB / 0.4972 GB, free: 4.297 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.181e-05/0.4846, allocations: 33.69 kB / 0.4972 GB, free: 4.258 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002669/0.4848, allocations: 415.6 kB / 0.4976 GB, free: 3.844 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001939/0.485, allocations: 264 kB / 0.4979 GB, free: 3.582 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.578e-05/0.4851, allocations: 0 / 0.4979 GB, free: 3.582 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.4852, allocations: 378.7 kB / 0.4982 GB, free: 3.203 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.4856, allocations: 214.6 kB / 0.4984 GB, free: 2.992 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004805/0.4861, allocations: 428.1 kB / 0.4988 GB, free: 2.492 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006357/0.4867, allocations: 328.3 kB / 0.4991 GB, free: 2.172 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.4867, allocations: 0 / 0.4991 GB, free: 2.172 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001663/0.4884, allocations: 0.9196 MB / 0.5 GB, free: 1.238 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.4884, allocations: 9.562 kB / 0.5 GB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.4885, allocations: 7.953 kB / 0.5001 GB, free: 1.223 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007706/0.4892, allocations: 255.7 kB / 0.5003 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005788/0.4898, allocations: 147.7 kB / 0.5004 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004908/0.4948, allocations: 4.186 MB / 0.5045 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007357/0.4955, allocations: 87.2 kB / 0.5046 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.698e-05/0.4956, allocations: 32.06 kB / 0.5046 GB, free: 12.29 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real 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.0003117/0.4959, allocations: 150.7 kB / 0.5048 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001655/0.4976, allocations: 0.8093 MB / 0.5056 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.109e-05/0.4977, allocations: 63.25 kB / 0.5056 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001788/0.4995, allocations: 0.8719 MB / 0.5065 GB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.4995, allocations: 11.94 kB / 0.5065 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4995, allocations: 4 kB / 0.5065 GB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.4995, allocations: 3.984 kB / 0.5065 GB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002827/0.5024, allocations: 1.704 MB / 0.5082 GB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.5024, allocations: 11.98 kB / 0.5082 GB, free: 8.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.5028, allocations: 99.83 kB / 0.5083 GB, free: 8.473 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007068/0.5036, allocations: 261.6 kB / 0.5085 GB, free: 8.211 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-05/0.5036, allocations: 7.984 kB / 0.5085 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004356/0.508, allocations: 4.169 MB / 0.5126 GB, free: 3.801 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.508, allocations: 4.234 kB / 0.5126 GB, free: 3.797 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.5101, allocations: 1.252 MB / 0.5138 GB, free: 2.516 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.5103, allocations: 208.1 kB / 0.514 GB, free: 2.293 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.004e-05/0.5104, allocations: 15.94 kB / 0.514 GB, free: 2.277 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004415/0.5109, allocations: 36.14 kB / 0.5141 GB, free: 2.242 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.511, allocations: 64.69 kB / 0.5141 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.928e-05/0.5111, allocations: 35.97 kB / 0.5142 GB, free: 2.145 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002691/0.5114, allocations: 263 kB / 0.5144 GB, free: 1.887 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5114, allocations: 0 / 0.5144 GB, free: 1.887 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001059/0.5124, allocations: 287 kB / 0.5147 GB, free: 1.605 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.002469/0.5149, allocations: 1.912 MB / 0.5166 GB, free: 15.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.5165, allocations: 0.9474 MB / 0.5175 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5165, allocations: 1.062 kB / 0.5175 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008623/0.5174, allocations: 0.6523 MB / 0.5181 GB, free: 14.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.5178, allocations: 74.05 kB / 0.5182 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.5204, allocations: 1.268 MB / 0.5194 GB, free: 12.63 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005154/0.5209, allocations: 1.01 MB / 0.5204 GB, free: 11.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003306/0.5213, allocations: 81.12 kB / 0.5205 GB, free: 11.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003589/0.5216, allocations: 303.3 kB / 0.5208 GB, free: 11.21 MB / 410.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5216, allocations: 0 / 0.5208 GB, free: 11.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03643/0.5581, allocations: 15.73 MB / 0.5362 GB, free: 11.61 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002533/0.5584, allocations: 149.3 kB / 0.5363 GB, free: 11.42 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.353/2.911, allocations: 0 / 0.5363 GB, free: 11.42 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat