Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.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.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_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.001008/0.001008, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 221.3 MB / 235.5 MB, free: 2.934 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.0008336/0.0008335, allocations: 86.98 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.93e-05/2.932e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0932/0.09325, allocations: 50.42 MB / 394.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2946/0.3879, allocations: 80.46 MB / 474.8 MB, free: 6.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.3881, allocations: 73.7 kB / 474.9 MB, free: 6.926 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02369/0.4118, allocations: 9.129 MB / 484 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4118, allocations: 4 kB / 484 MB, free: 13.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.4118, allocations: 8 kB / 484 MB, free: 13.72 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001118/0.413, allocations: 0.7596 MB / 484.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.413, allocations: 8.031 kB / 484.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.4132, allocations: 107.7 kB / 484.9 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.4133, allocations: 75.16 kB / 485 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004544/0.4137, allocations: 367.3 kB / 485.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.4138, allocations: 49.27 kB / 485.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-05/0.4139, allocations: 55.94 kB / 485.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00086/0.4147, allocations: 0.5382 MB / 486 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.4148, allocations: 0 / 486 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.445e-05/0.4148, allocations: 28 kB / 486 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.4148, allocations: 12 kB / 486 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007214/0.4156, allocations: 421.1 kB / 486.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002784/0.4184, allocations: 2.121 MB / 488.5 MB, free: 8.988 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007707/0.4191, allocations: 0.6065 MB / 489.1 MB, free: 8.348 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004972/0.4196, allocations: 377.8 kB / 489.5 MB, free: 7.977 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.4197, allocations: 12.55 kB / 489.5 MB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.4197, allocations: 39.06 kB / 489.6 MB, free: 7.918 MB / 362.7 MB Notification: Performance of pre-optimization done (n=60): time 1.914e-06/0.4197, allocations: 4 kB / 489.6 MB, free: 7.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.001947/0.4217, allocations: 1.252 MB / 490.8 MB, free: 6.598 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.4218, allocations: 63.92 kB / 490.9 MB, free: 6.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003083/0.4221, allocations: 307.6 kB / 491.2 MB, free: 6.211 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.4221, allocations: 37.7 kB / 491.2 MB, free: 6.168 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.4222, allocations: 241 kB / 491.5 MB, free: 5.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.4224, allocations: 201 kB / 491.7 MB, free: 5.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.456e-05/0.4224, allocations: 16 kB / 491.7 MB, free: 5.715 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.4225, allocations: 346.8 kB / 492 MB, free: 5.367 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002455/0.4228, allocations: 161 kB / 492.2 MB, free: 5.211 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.4231, allocations: 191.9 kB / 492.4 MB, free: 5.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.4233, allocations: 171.2 kB / 492.5 MB, free: 4.855 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.4234, allocations: 0 / 492.5 MB, free: 4.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001006/0.4244, allocations: 0.6227 MB / 493.1 MB, free: 4.211 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.4244, allocations: 8.031 kB / 493.1 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.4244, allocations: 0 / 493.1 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007089/0.4251, allocations: 251.2 kB / 493.4 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.4254, allocations: 67.89 kB / 493.5 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005699/0.4312, allocations: 6.75 MB / 0.4885 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.4315, allocations: 24.08 kB / 0.4885 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.4315, allocations: 20 kB / 0.4885 GB, free: 12.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.4317, allocations: 128.9 kB / 0.4887 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-05/0.4317, allocations: 55.38 kB / 0.4887 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001427/0.4319, allocations: 60.95 kB / 0.4888 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.4319, allocations: 11.94 kB / 0.4888 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4319, allocations: 0 / 0.4888 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.4319, allocations: 7.984 kB / 0.4888 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.4338, allocations: 1.314 MB / 0.4901 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.4338, allocations: 4 kB / 0.4901 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002807/0.4341, allocations: 55.91 kB / 0.4901 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006226/0.4347, allocations: 251.2 kB / 0.4904 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.212e-05/0.4348, allocations: 19.95 kB / 0.4904 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005789/0.4405, allocations: 6.762 MB / 0.497 GB, free: 3.266 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.4406, allocations: 8.547 kB / 0.497 GB, free: 3.258 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.4421, allocations: 0.9665 MB / 0.4979 GB, free: 2.262 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.4423, allocations: 156.5 kB / 0.4981 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.502e-05/0.4424, allocations: 12 kB / 0.4981 GB, free: 2.078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.4427, allocations: 23.98 kB / 0.4981 GB, free: 2.055 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.4428, allocations: 56.48 kB / 0.4982 GB, free: 2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.4429, allocations: 11.94 kB / 0.4982 GB, free: 1.988 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000255/0.4431, allocations: 254.1 kB / 0.4984 GB, free: 1.738 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4431, allocations: 0 / 0.4984 GB, free: 1.738 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008222/0.444, allocations: 176 kB / 0.4986 GB, free: 1.566 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0017/0.4457, allocations: 1.535 MB / 0.5001 GB, free: 15.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.4471, allocations: 0.9898 MB / 0.5011 GB, free: 14.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4471, allocations: 0 / 0.5011 GB, free: 14.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.4482, allocations: 0.8136 MB / 0.5019 GB, free: 14.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004672/0.4487, allocations: 69.48 kB / 0.5019 GB, free: 14.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.4507, allocations: 1.141 MB / 0.503 GB, free: 12.84 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004952/0.4513, allocations: 0.9024 MB / 0.5039 GB, free: 11.91 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001739/0.4514, allocations: 52.53 kB / 0.504 GB, free: 11.86 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.4517, allocations: 175.4 kB / 0.5041 GB, free: 11.68 MB / 394.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4517, allocations: 0 / 0.5041 GB, free: 11.68 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.4765, allocations: 12.12 MB / 0.516 GB, free: 15.76 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/0.4767, allocations: 185.7 kB / 0.5162 GB, free: 15.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.228/2.705, allocations: 3.938 kB / 0.5162 GB, free: 15.52 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat