Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.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.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_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.001028/0.001028, allocations: 181.7 kB / 17.01 MB, free: 5.125 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.42/1.42, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008716/0.0008715, allocations: 97.09 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002504, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2666, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.3744, allocations: 78.98 MB / 454.9 MB, free: 1.672 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.3747, allocations: 67.97 kB / 454.9 MB, free: 1.605 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02422/0.399, allocations: 8.825 MB / 463.8 MB, free: 8.719 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.399, allocations: 3.938 kB / 463.8 MB, free: 8.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.125e-05/0.3991, allocations: 16 kB / 463.8 MB, free: 8.699 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.001544/0.4006, allocations: 0.8222 MB / 464.6 MB, free: 7.828 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.4007, allocations: 8.031 kB / 464.6 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001881/0.4009, allocations: 103.6 kB / 464.7 MB, free: 7.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.401, allocations: 79.09 kB / 464.8 MB, free: 7.633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005791/0.4016, allocations: 372.9 kB / 465.2 MB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.758e-05/0.4016, allocations: 41.25 kB / 465.2 MB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.173e-05/0.4017, allocations: 56 kB / 465.3 MB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.4029, allocations: 0.5616 MB / 465.8 MB, free: 6.539 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.4029, allocations: 7.938 kB / 465.8 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.34e-05/0.403, allocations: 20 kB / 465.8 MB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.403, allocations: 16 kB / 465.9 MB, free: 6.496 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.404, allocations: 476.9 kB / 466.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003301/0.4073, allocations: 2.114 MB / 468.4 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000922/0.4083, allocations: 0.6395 MB / 469.1 MB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.4083, allocations: 4.562 kB / 469.1 MB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.4083, allocations: 47.08 kB / 469.1 MB, free: 3.105 MB / 346.7 MB Notification: Performance of pre-optimization done (n=60): time 3.477e-06/0.4084, allocations: 0 / 469.1 MB, free: 3.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.004099/0.4125, allocations: 1.983 MB / 471.1 MB, free: 1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.4125, allocations: 55.97 kB / 471.2 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003708/0.4129, allocations: 324.8 kB / 471.5 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.413, allocations: 41.64 kB / 471.5 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.4131, allocations: 237 kB / 471.8 MB, free: 336 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.4133, allocations: 205 kB / 472 MB, free: 128 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.135e-05/0.4133, allocations: 8 kB / 472 MB, free: 120 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4135, allocations: 362.8 kB / 472.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000308/0.4138, allocations: 169 kB / 472.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/0.4142, allocations: 215.8 kB / 472.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.4145, allocations: 178.2 kB / 472.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4145, allocations: 4 kB / 472.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001146/0.4157, allocations: 0.6773 MB / 473.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.4157, allocations: 8.031 kB / 473.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.4157, allocations: 0 / 473.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006977/0.4164, allocations: 259.1 kB / 473.8 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002983/0.4167, allocations: 63.91 kB / 473.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006373/0.4231, allocations: 6.837 MB / 480.7 MB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004026/0.4236, allocations: 28.17 kB / 480.7 MB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.4236, allocations: 15.94 kB / 480.8 MB, free: 6.758 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 () * Number of clocked 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.0003599/0.424, allocations: 181.7 kB / 480.9 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.4241, allocations: 51.34 kB / 481 MB, free: 6.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001315/0.4242, allocations: 64.95 kB / 481 MB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.4242, allocations: 8 kB / 481.1 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.4243, allocations: 0 / 481.1 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.4243, allocations: 7.984 kB / 481.1 MB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.4265, allocations: 1.361 MB / 482.4 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4265, allocations: 0 / 482.4 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002798/0.4268, allocations: 63.89 kB / 482.5 MB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007569/0.4276, allocations: 251.2 kB / 482.7 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.591e-05/0.4276, allocations: 12.44 kB / 482.7 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006148/0.4338, allocations: 6.844 MB / 489.6 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4338, allocations: 0 / 489.6 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.4355, allocations: 1.045 MB / 490.6 MB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002221/0.4358, allocations: 164.5 kB / 490.8 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.112e-05/0.4358, allocations: 8 kB / 490.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.4361, allocations: 19.98 kB / 490.8 MB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.4362, allocations: 56.56 kB / 490.9 MB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.4363, allocations: 16 kB / 490.9 MB, free: 11.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002558/0.4365, allocations: 259.2 kB / 491.1 MB, free: 11.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4365, allocations: 0 / 491.1 MB, free: 11.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008326/0.4374, allocations: 176 kB / 491.3 MB, free: 11.52 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 () * Number of clocked 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.001945/0.4393, allocations: 1.601 MB / 492.9 MB, free: 9.879 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.441, allocations: 1.045 MB / 494 MB, free: 8.781 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.441, allocations: 8 kB / 494 MB, free: 8.773 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.4422, allocations: 0.8492 MB / 494.8 MB, free: 7.871 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004979/0.4427, allocations: 69.47 kB / 494.9 MB, free: 7.805 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005119/0.4478, allocations: 3.574 MB / 498.5 MB, free: 4.168 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.4483, allocations: 0.8948 MB / 499.4 MB, free: 3.246 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001939/0.4485, allocations: 56.53 kB / 499.4 MB, free: 3.188 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.4487, allocations: 175.4 kB / 499.6 MB, free: 3.016 MB / 378.7 MB Notification: Performance of SimCode: time 4.398e-06/0.4487, allocations: 0 / 499.6 MB, free: 3.016 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2059/0.6546, allocations: 12.18 MB / 0.4998 GB, free: 107.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.6548, allocations: 199.5 kB / 0.5 GB, free: 106.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.413/3.068, allocations: 0 / 0.5 GB, free: 106.9 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat