Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 198.8 kB / 8.538 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.152/1.152, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009027/0.0009029, allocations: 95.86 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1004/0.1014, allocations: 56.9 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08678/0.1882, allocations: 51.48 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2208/0.409, allocations: 80.54 MB / 475.3 MB, free: 12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001649/0.4092, allocations: 71.08 kB / 475.3 MB, free: 11.97 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.02173/0.4309, allocations: 9.648 MB / 485 MB, free: 4.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.431, allocations: 8 kB / 485 MB, free: 4.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003689/0.4314, allocations: 103.2 kB / 485.1 MB, free: 4.602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000401/0.4318, allocations: 374.8 kB / 485.4 MB, free: 4.246 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.4318, allocations: 16 kB / 485.5 MB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.238e-05/0.4319, allocations: 31.91 kB / 485.5 MB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005914/0.4325, allocations: 373 kB / 485.9 MB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005913/0.4331, allocations: 447.4 kB / 486.3 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.4331, allocations: 0 / 486.3 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.4331, allocations: 0.75 kB / 486.3 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.4331, allocations: 16 kB / 486.3 MB, free: 3.609 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.4353, allocations: 1.974 MB / 488.3 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.4357, allocations: 240.7 kB / 488.5 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.436, allocations: 354.5 kB / 488.9 MB, free: 1.543 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-05/0.4361, allocations: 4.5 kB / 488.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.4361, allocations: 37.75 kB / 488.9 MB, free: 1.496 MB / 346.7 MB Notification: Performance of pre-optimization done (n=60): time 2.375e-06/0.4361, allocations: 0 / 488.9 MB, free: 1.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.001675/0.4378, allocations: 1.14 MB / 490 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.825e-05/0.4378, allocations: 63.81 kB / 490.1 MB, free: 480 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.4381, allocations: 271.8 kB / 490.4 MB, free: 260 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.4381, allocations: 25.7 kB / 490.4 MB, free: 228 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.59e-05/0.4381, allocations: 191.1 kB / 490.6 MB, free: 48 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.4383, allocations: 202 kB / 490.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/0.4383, allocations: 0 / 490.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4385, allocations: 356.7 kB / 491.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002315/0.4387, allocations: 133.6 kB / 491.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.4389, allocations: 185 kB / 491.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.4392, allocations: 149.6 kB / 491.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.4392, allocations: 4 kB / 491.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001007/0.4402, allocations: 0.5775 MB / 492.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.4403, allocations: 4 kB / 492.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.4403, allocations: 4 kB / 492.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006959/0.441, allocations: 244.5 kB / 492.4 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003255/0.4413, allocations: 65.7 kB / 492.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005945/0.4473, allocations: 6.397 MB / 498.9 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.4476, allocations: 12.06 kB / 498.9 MB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.391e-05/0.4477, allocations: 19.86 kB / 498.9 MB, free: 8.23 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.0001457/0.4479, allocations: 113 kB / 499 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.448, allocations: 47.44 kB / 499.1 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.4481, allocations: 54.69 kB / 499.1 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.4481, allocations: 4 kB / 499.1 MB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.4481, allocations: 4 kB / 499.1 MB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4481, allocations: 7.984 kB / 499.1 MB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001977/0.4501, allocations: 1.147 MB / 0.4886 GB, free: 7.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.4501, allocations: 3.906 kB / 0.4886 GB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003358/0.4505, allocations: 71.2 kB / 0.4886 GB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007205/0.4512, allocations: 245.8 kB / 0.4889 GB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.014e-05/0.4513, allocations: 0 / 0.4889 GB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005927/0.4572, allocations: 6.402 MB / 0.4951 GB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.4573, allocations: 0 / 0.4951 GB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001478/0.4587, allocations: 0.9065 MB / 0.496 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002481/0.4612, allocations: 1.993 MB / 0.4979 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.4615, allocations: 156.5 kB / 0.4981 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.391e-05/0.4616, allocations: 3.984 kB / 0.4981 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.4619, allocations: 12 kB / 0.4981 GB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.27e-05/0.462, allocations: 39.34 kB / 0.4981 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.621e-05/0.462, allocations: 12 kB / 0.4982 GB, free: 14.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002331/0.4623, allocations: 220.5 kB / 0.4984 GB, free: 13.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001538/0.4638, allocations: 148 kB / 0.4985 GB, free: 13.66 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.0001858/0.464, allocations: 110.5 kB / 0.4986 GB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.4654, allocations: 0.8625 MB / 0.4995 GB, free: 12.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4654, allocations: 4.062 kB / 0.4995 GB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009531/0.4664, allocations: 0.6895 MB / 0.5001 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.4668, allocations: 49.94 kB / 0.5002 GB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.4691, allocations: 1.008 MB / 0.5012 GB, free: 10.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000512/0.4696, allocations: 0.9228 MB / 0.5021 GB, free: 9.883 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.4696, allocations: 0 / 0.5021 GB, free: 9.883 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat