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.001091/0.001091, allocations: 172.9 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.446/1.446, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008185/0.0008185, allocations: 82.66 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.025e-05/3.027e-05, allocations: 11.98 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0924/0.09245, allocations: 47.56 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2869/0.3794, allocations: 78.88 MB / 449 MB, free: 14.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.3796, allocations: 66.53 kB / 449.1 MB, free: 14.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0228/0.4024, allocations: 8.849 MB / 457.9 MB, free: 6.914 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4025, allocations: 0 / 457.9 MB, free: 6.914 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.206e-05/0.4025, allocations: 12 kB / 457.9 MB, free: 6.902 MB / 330.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.001112/0.4036, allocations: 0.7633 MB / 458.7 MB, free: 6.129 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.4037, allocations: 12.03 kB / 458.7 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001514/0.4038, allocations: 108.7 kB / 458.8 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.4039, allocations: 75.11 kB / 458.9 MB, free: 5.945 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.4044, allocations: 367.3 kB / 459.2 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.4044, allocations: 41.31 kB / 459.3 MB, free: 5.504 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.254e-05/0.4045, allocations: 55.94 kB / 459.3 MB, free: 5.449 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008199/0.4053, allocations: 0.546 MB / 459.9 MB, free: 4.875 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.4054, allocations: 0 / 459.9 MB, free: 4.875 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.071e-05/0.4054, allocations: 24 kB / 459.9 MB, free: 4.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.4054, allocations: 16 kB / 459.9 MB, free: 4.836 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006688/0.4061, allocations: 425 kB / 460.3 MB, free: 4.418 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/0.4088, allocations: 2.118 MB / 462.4 MB, free: 2.211 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007717/0.4096, allocations: 0.6065 MB / 463.1 MB, free: 1.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000465/0.4101, allocations: 385.8 kB / 463.4 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.4101, allocations: 4.562 kB / 463.4 MB, free: 1.184 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.4102, allocations: 43.12 kB / 463.5 MB, free: 1.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=60): time 1.753e-06/0.4102, allocations: 0 / 463.5 MB, free: 1.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.002024/0.4122, allocations: 1.256 MB / 464.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.4122, allocations: 55.97 kB / 464.8 MB, free: 15.74 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003347/0.4126, allocations: 311.6 kB / 465.1 MB, free: 15.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.4126, allocations: 41.64 kB / 465.1 MB, free: 15.39 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.4128, allocations: 237.1 kB / 465.4 MB, free: 15.15 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.4129, allocations: 205 kB / 465.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.079e-05/0.4129, allocations: 8 kB / 465.6 MB, free: 14.94 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4131, allocations: 354.8 kB / 465.9 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002583/0.4133, allocations: 153.1 kB / 466.1 MB, free: 14.44 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002782/0.4136, allocations: 187.9 kB / 466.2 MB, free: 14.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.4139, allocations: 163.2 kB / 466.4 MB, free: 14.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4139, allocations: 0 / 466.4 MB, free: 14.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00105/0.415, allocations: 0.6266 MB / 467 MB, free: 13.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.415, allocations: 4 kB / 467 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.415, allocations: 4.031 kB / 467 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007342/0.4158, allocations: 255.1 kB / 467.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000326/0.4161, allocations: 71.89 kB / 467.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006228/0.4223, allocations: 6.761 MB / 474.1 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000397/0.4228, allocations: 19.98 kB / 474.1 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/0.4228, allocations: 24.11 kB / 474.2 MB, free: 5.762 MB / 346.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.000145/0.423, allocations: 124.9 kB / 474.3 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.655e-05/0.4231, allocations: 55.34 kB / 474.3 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/0.4232, allocations: 64.95 kB / 474.4 MB, free: 5.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.4233, allocations: 8 kB / 474.4 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.4233, allocations: 0 / 474.4 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.4233, allocations: 3.984 kB / 474.4 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00192/0.4252, allocations: 1.314 MB / 475.7 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.4252, allocations: 0 / 475.7 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/0.4255, allocations: 63.97 kB / 475.8 MB, free: 4.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006388/0.4262, allocations: 255.4 kB / 476 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.4262, allocations: 8 kB / 476.1 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005561/0.4318, allocations: 6.767 MB / 482.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4318, allocations: 0 / 482.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.4333, allocations: 0.9665 MB / 483.8 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.4335, allocations: 168.4 kB / 483.9 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.247e-05/0.4335, allocations: 12 kB / 484 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.4338, allocations: 23.98 kB / 484 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.434, allocations: 48.48 kB / 484 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.434, allocations: 16 kB / 484 MB, free: 11.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002656/0.4343, allocations: 254.1 kB / 484.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.4343, allocations: 0 / 484.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008154/0.4351, allocations: 176 kB / 484.5 MB, free: 10.79 MB / 362.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.001672/0.4368, allocations: 1.541 MB / 486 MB, free: 9.207 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.4381, allocations: 0.9898 MB / 487 MB, free: 8.164 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4382, allocations: 0 / 487 MB, free: 8.164 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009753/0.4391, allocations: 0.8175 MB / 487.8 MB, free: 7.297 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003966/0.4395, allocations: 73.61 kB / 487.9 MB, free: 7.227 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.4417, allocations: 1.121 MB / 489 MB, free: 6.066 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.4422, allocations: 0.8985 MB / 489.9 MB, free: 5.141 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001696/0.4423, allocations: 56.53 kB / 490 MB, free: 5.086 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002384/0.4426, allocations: 175.4 kB / 490.1 MB, free: 4.914 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4426, allocations: 0 / 490.1 MB, free: 4.914 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02624/0.4688, allocations: 12.13 MB / 0.4905 GB, free: 8.773 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002657/0.4691, allocations: 177.7 kB / 0.4907 GB, free: 8.551 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.172/2.641, allocations: 7.938 kB / 0.4907 GB, free: 8.543 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