Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier") translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier") [: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 3.2.3+maint.om/package.mo): time 0.001614/0.001613, allocations: 178.3 kB / 8.152 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.672/1.672, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001291/0.001291, allocations: 89.66 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.219e-05/1.234e-05, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.246, allocations: 47.56 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1201/0.3662, allocations: 78.15 MB / 440 MB, free: 7.918 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.3665, allocations: 63.97 kB / 440 MB, free: 7.855 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.04072/0.4073, allocations: 8.536 MB / 448.6 MB, free: 15.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.645e-05/0.4074, allocations: 12 kB / 448.6 MB, free: 15.32 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.002105/0.4095, allocations: 0.7741 MB / 449.4 MB, free: 14.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.4095, allocations: 12.03 kB / 449.4 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002546/0.4098, allocations: 67.25 kB / 449.4 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007552/0.4106, allocations: 363.4 kB / 449.8 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.4106, allocations: 20 kB / 449.8 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.4107, allocations: 31.91 kB / 449.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001246/0.412, allocations: 378.5 kB / 450.2 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.4132, allocations: 447.9 kB / 450.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.4133, allocations: 0.5625 kB / 450.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.682e-05/0.4133, allocations: 0 / 450.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.4134, allocations: 16 kB / 450.7 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004875/0.4183, allocations: 1.972 MB / 452.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007006/0.419, allocations: 234.9 kB / 452.9 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008453/0.4199, allocations: 362 kB / 453.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.364e-05/0.42, allocations: 5.625 kB / 453.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.42, allocations: 43.06 kB / 453.3 MB, free: 10.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=60): time 2.945e-06/0.42, allocations: 0 / 453.3 MB, free: 10.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.00342/0.4234, allocations: 1.138 MB / 454.4 MB, free: 9.234 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.4235, allocations: 67.81 kB / 454.5 MB, free: 9.152 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004938/0.4241, allocations: 270 kB / 454.7 MB, free: 8.883 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.002e-05/0.4241, allocations: 25.7 kB / 454.8 MB, free: 8.852 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.4243, allocations: 239.4 kB / 455 MB, free: 8.613 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/0.4245, allocations: 193 kB / 455.2 MB, free: 8.422 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.4245, allocations: 0 / 455.2 MB, free: 8.422 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.4247, allocations: 338.8 kB / 455.5 MB, free: 8.082 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/0.4252, allocations: 133.3 kB / 455.7 MB, free: 7.953 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004935/0.4257, allocations: 184.6 kB / 455.8 MB, free: 7.766 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000478/0.4262, allocations: 151.2 kB / 456 MB, free: 7.617 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4262, allocations: 4 kB / 456 MB, free: 7.613 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00178/0.428, allocations: 0.5576 MB / 456.5 MB, free: 7.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.4281, allocations: 6.031 kB / 456.5 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4281, allocations: 0 / 456.5 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001183/0.4293, allocations: 241.6 kB / 456.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000635/0.4299, allocations: 71.89 kB / 456.9 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009699/0.4397, allocations: 6.342 MB / 463.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.4402, allocations: 11.94 kB / 463.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.935e-05/0.4403, allocations: 22.89 kB / 463.2 MB, free: 15.88 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 {(3,77.8%) 7} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.00016/0.4404, allocations: 34.58 kB / 463.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.4406, allocations: 47.44 kB / 463.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002074/0.4409, allocations: 52.75 kB / 463.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.4409, allocations: 7.938 kB / 463.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/0.4409, allocations: 4 kB / 463.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.4409, allocations: 7.922 kB / 463.4 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/0.4442, allocations: 1.163 MB / 464.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.4443, allocations: 0 / 464.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006509/0.445, allocations: 60.02 kB / 464.6 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/0.4463, allocations: 251.2 kB / 464.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-05/0.4464, allocations: 0 / 464.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009601/0.4561, allocations: 6.406 MB / 471.3 MB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.4561, allocations: 3.984 kB / 471.3 MB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002568/0.4587, allocations: 0.9062 MB / 472.2 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003805/0.4591, allocations: 156.5 kB / 472.3 MB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.4593, allocations: 0 / 472.3 MB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/0.4598, allocations: 13.02 kB / 472.3 MB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.4599, allocations: 32.44 kB / 472.4 MB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.086e-05/0.46, allocations: 23.91 kB / 472.4 MB, free: 6.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003699/0.4604, allocations: 212.6 kB / 472.6 MB, free: 5.941 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001243/0.4617, allocations: 144 kB / 472.7 MB, free: 5.801 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.0002387/0.4619, allocations: 104 kB / 472.8 MB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002296/0.4642, allocations: 0.8772 MB / 473.7 MB, free: 4.773 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4643, allocations: 0 / 473.7 MB, free: 4.773 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.466, allocations: 0.696 MB / 474.4 MB, free: 4.039 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006854/0.4667, allocations: 62.7 kB / 474.5 MB, free: 3.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003739/0.4705, allocations: 0.9923 MB / 475.5 MB, free: 2.961 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000719/0.4713, allocations: 0.9171 MB / 476.4 MB, free: 2.02 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4713, allocations: 0 / 476.4 MB, free: 2.02 MB / 362.7 MB Notification: Performance of Templates: time 0.02474/0.496, allocations: 13.55 MB / 489.9 MB, free: 4.465 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches