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.001525/0.001525, allocations: 177.1 kB / 8.35 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.411/1.411, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.00105/0.00105, allocations: 89.84 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.99e-05/2.005e-05, allocations: 8 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3312/0.4365, allocations: 79.8 MB / 467.4 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.4368, allocations: 67.95 kB / 467.4 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02304/0.4598, allocations: 9.046 MB / 476.5 MB, free: 5.828 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4599, allocations: 0 / 476.5 MB, free: 5.828 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.4599, allocations: 12 kB / 476.5 MB, free: 5.816 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001108/0.461, allocations: 0.7518 MB / 477.2 MB, free: 5.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.4611, allocations: 19.97 kB / 477.2 MB, free: 5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.4612, allocations: 63.25 kB / 477.3 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004533/0.4616, allocations: 359.4 kB / 477.7 MB, free: 4.543 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.4617, allocations: 19.95 kB / 477.7 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.453e-05/0.4618, allocations: 36 kB / 477.7 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005993/0.4624, allocations: 370.5 kB / 478.1 MB, free: 4.125 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006567/0.463, allocations: 452.5 kB / 478.5 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.463, allocations: 3.938 kB / 478.5 MB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.4631, allocations: 0 / 478.5 MB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.4631, allocations: 12 kB / 478.5 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002476/0.4656, allocations: 1.967 MB / 480.5 MB, free: 1.594 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007256/0.4663, allocations: 0.5855 MB / 481.1 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004469/0.4668, allocations: 361.8 kB / 481.4 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.4668, allocations: 4.562 kB / 481.4 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.4669, allocations: 47.12 kB / 481.5 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of pre-optimization done (n=60): time 3.136e-06/0.4669, allocations: 3.984 kB / 481.5 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.001846/0.4687, allocations: 1.135 MB / 482.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.4688, allocations: 63.97 kB / 482.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003005/0.4691, allocations: 274.3 kB / 483 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.4691, allocations: 25.7 kB / 483 MB, free: 14.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.4693, allocations: 229 kB / 483.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.4694, allocations: 189.1 kB / 483.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.96e-05/0.4695, allocations: 0 / 483.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.4696, allocations: 354.8 kB / 483.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002455/0.4699, allocations: 133.1 kB / 483.9 MB, free: 14.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002465/0.4701, allocations: 182.8 kB / 484 MB, free: 13.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.4704, allocations: 158 kB / 484.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.4704, allocations: 0 / 484.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009232/0.4713, allocations: 0.572 MB / 484.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.4713, allocations: 9.094 kB / 484.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.4714, allocations: 0 / 484.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000645/0.472, allocations: 251.8 kB / 485 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/0.4723, allocations: 67.89 kB / 485.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005681/0.478, allocations: 6.522 MB / 491.6 MB, free: 5.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/0.4783, allocations: 8.031 kB / 491.6 MB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.4783, allocations: 16 kB / 491.6 MB, free: 5.809 MB / 362.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.000125/0.4784, allocations: 116.9 kB / 491.8 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008498/0.4793, allocations: 0.5409 MB / 492.3 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.329e-05/0.4794, allocations: 47.44 kB / 492.3 MB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.4795, allocations: 53.06 kB / 492.4 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.4795, allocations: 8.125 kB / 492.4 MB, free: 5.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.4795, allocations: 4 kB / 492.4 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.4795, allocations: 3.984 kB / 492.4 MB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.4812, allocations: 1.174 MB / 493.6 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/0.4813, allocations: 7.938 kB / 493.6 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002726/0.4815, allocations: 63.91 kB / 493.7 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006063/0.4822, allocations: 235.5 kB / 493.9 MB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.4822, allocations: 3.984 kB / 493.9 MB, free: 3.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005575/0.4878, allocations: 6.523 MB / 0.4887 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.4878, allocations: 32 / 0.4887 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.4891, allocations: 0.9196 MB / 0.4896 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.4893, allocations: 156.5 kB / 0.4897 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.156e-05/0.4893, allocations: 0 / 0.4897 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.4896, allocations: 16.11 kB / 0.4897 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.4897, allocations: 56.48 kB / 0.4898 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.4898, allocations: 19.98 kB / 0.4898 GB, free: 11.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002188/0.49, allocations: 208.6 kB / 0.49 GB, free: 11.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.49, allocations: 0 / 0.49 GB, free: 11.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000827/0.4908, allocations: 152 kB / 0.4902 GB, free: 10.91 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.001642/0.4925, allocations: 1.461 MB / 0.4916 GB, free: 9.414 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.4938, allocations: 0.9334 MB / 0.4925 GB, free: 8.438 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4938, allocations: 0 / 0.4925 GB, free: 8.438 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008912/0.4947, allocations: 0.7663 MB / 0.4932 GB, free: 7.633 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.4951, allocations: 61.88 kB / 0.4933 GB, free: 7.574 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002034/0.4971, allocations: 1.047 MB / 0.4943 GB, free: 6.488 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.4977, allocations: 0.8906 MB / 0.4952 GB, free: 5.566 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.4978, allocations: 44.36 kB / 0.4952 GB, free: 5.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.498, allocations: 167.4 kB / 0.4954 GB, free: 5.355 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4981, allocations: 0 / 0.4954 GB, free: 5.355 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03318/0.5312, allocations: 10.77 MB / 0.5059 GB, free: 10.66 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000249/0.5315, allocations: 130.8 kB / 0.506 GB, free: 10.47 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.316/2.847, allocations: 0 / 0.506 GB, free: 10.47 MB / 394.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