Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 172.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007957/0.0007953, allocations: 94.69 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.348e-05/2.35e-05, allocations: 0 / 322.6 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08752/0.08756, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2942/0.3818, allocations: 86.96 MB / 457.1 MB, free: 6.449 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.3821, allocations: 77.52 kB / 457.2 MB, free: 6.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05508/0.4372, allocations: 22.47 MB / 479.6 MB, free: 1.117 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4372, allocations: 0 / 479.6 MB, free: 1.117 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.148e-05/0.4373, allocations: 20 kB / 479.6 MB, free: 1.098 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.002279/0.4396, allocations: 1.162 MB / 480.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.4396, allocations: 12.03 kB / 480.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002345/0.4399, allocations: 158.4 kB / 481 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001953/0.4418, allocations: 382.2 kB / 481.3 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007244/0.4426, allocations: 0.5335 MB / 481.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.132e-05/0.4426, allocations: 78.05 kB / 482 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.4428, allocations: 107.9 kB / 482.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.4445, allocations: 1.001 MB / 483.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.4445, allocations: 0 / 483.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.406e-05/0.4446, allocations: 48 kB / 483.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.4447, allocations: 28 kB / 483.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.4464, allocations: 0.8512 MB / 484 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005987/0.4524, allocations: 3.793 MB / 487.8 MB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002462/0.4549, allocations: 2.449 MB / 490.2 MB, free: 5.793 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007823/0.4557, allocations: 424 kB / 490.6 MB, free: 5.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001168/0.4558, allocations: 93.88 kB / 490.7 MB, free: 5.266 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007736/0.4566, allocations: 473.5 kB / 491.2 MB, free: 4.773 MB / 362.7 MB Notification: Performance of pre-optimization done (n=86): time 2.635e-06/0.4566, allocations: 0 / 491.2 MB, free: 4.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.001801/0.4584, allocations: 0.8371 MB / 492 MB, free: 3.922 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.4586, allocations: 200.6 kB / 492.2 MB, free: 3.684 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004987/0.4591, allocations: 407.9 kB / 492.6 MB, free: 3.277 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.679e-05/0.4592, allocations: 41.7 kB / 492.7 MB, free: 3.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.4595, allocations: 439.4 kB / 493.1 MB, free: 2.793 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002045/0.4597, allocations: 283.8 kB / 493.4 MB, free: 2.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.772e-05/0.4597, allocations: 16 kB / 493.4 MB, free: 2.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.4599, allocations: 378.8 kB / 493.8 MB, free: 2.117 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004256/0.4604, allocations: 241.9 kB / 494 MB, free: 1.883 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/0.461, allocations: 492.8 kB / 494.5 MB, free: 1.293 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004883/0.4615, allocations: 306 kB / 494.8 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.4615, allocations: 4 kB / 494.8 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00164/0.4631, allocations: 1.009 MB / 495.8 MB, free: 15.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.4632, allocations: 8 kB / 495.8 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.4632, allocations: 8 kB / 495.8 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007986/0.464, allocations: 271.7 kB / 496.1 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005729/0.4646, allocations: 159.8 kB / 496.2 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/0.4692, allocations: 4.38 MB / 0.4889 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006162/0.4698, allocations: 119.1 kB / 0.489 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-05/0.4699, allocations: 39.98 kB / 0.489 GB, free: 10.72 MB / 378.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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,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 (90): * Single equations (assignments): 88 * 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.0001898/0.4701, allocations: 165.6 kB / 0.4892 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.4702, allocations: 71.2 kB / 0.4893 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001744/0.472, allocations: 0.9231 MB / 0.4902 GB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.472, allocations: 8 kB / 0.4902 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.472, allocations: 3.953 kB / 0.4902 GB, free: 9.535 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.472, allocations: 4.047 kB / 0.4902 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00259/0.4746, allocations: 1.902 MB / 0.492 GB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.4746, allocations: 0 / 0.492 GB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004381/0.4751, allocations: 111.8 kB / 0.4921 GB, free: 7.449 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007059/0.4758, allocations: 257.7 kB / 0.4924 GB, free: 7.191 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.02e-05/0.4758, allocations: 23.95 kB / 0.4924 GB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00423/0.4801, allocations: 4.346 MB / 0.4966 GB, free: 2.543 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.4801, allocations: 3.953 kB / 0.4966 GB, free: 2.539 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001907/0.482, allocations: 1.306 MB / 0.4979 GB, free: 1.191 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000258/0.4823, allocations: 216.1 kB / 0.4981 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.361e-05/0.4824, allocations: 16 kB / 0.4981 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004446/0.4828, allocations: 47.97 kB / 0.4982 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.483, allocations: 72.67 kB / 0.4983 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.016e-05/0.483, allocations: 35.88 kB / 0.4983 GB, free: 0.793 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003424/0.4834, allocations: 309.6 kB / 0.4986 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4834, allocations: 0 / 0.4986 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009029/0.4843, allocations: 323.2 kB / 0.4989 GB, free: 180 kB / 378.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,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * 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.002413/0.4867, allocations: 2.065 MB / 0.5009 GB, free: 14.06 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.4884, allocations: 1.039 MB / 0.5019 GB, free: 12.99 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4884, allocations: 0 / 0.5019 GB, free: 12.99 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009349/0.4893, allocations: 0.6992 MB / 0.5026 GB, free: 12.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004665/0.4898, allocations: 108.5 kB / 0.5027 GB, free: 12.17 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00446/0.4943, allocations: 1.901 MB / 0.5046 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.4948, allocations: 1.018 MB / 0.5056 GB, free: 9.18 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003791/0.4952, allocations: 89.55 kB / 0.5057 GB, free: 9.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003634/0.4955, allocations: 315.3 kB / 0.506 GB, free: 8.781 MB / 394.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4956, allocations: 0 / 0.506 GB, free: 8.781 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03368/0.5292, allocations: 17.83 MB / 0.5234 GB, free: 6.926 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001622/0.5294, allocations: 198.6 kB / 0.5235 GB, free: 6.703 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.364/2.893, allocations: 3.938 kB / 0.5236 GB, free: 6.699 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat