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: 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 221.3 MB / 235.5 MB, free: 2.902 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.0008195/0.0008195, allocations: 93.98 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.392e-05/2.394e-05, allocations: 4 kB / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08447/0.0845, allocations: 50.41 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2844/0.3689, allocations: 80.46 MB / 474.7 MB, free: 7.102 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001851/0.3691, allocations: 71.8 kB / 474.8 MB, free: 7.035 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0239/0.393, allocations: 9.133 MB / 483.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3931, allocations: 0 / 483.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.3931, allocations: 12 kB / 483.9 MB, free: 13.83 MB / 362.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.001085/0.3942, allocations: 0.7602 MB / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3942, allocations: 12.03 kB / 484.7 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.3944, allocations: 63.25 kB / 484.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004352/0.3948, allocations: 359.4 kB / 485.1 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.769e-05/0.3948, allocations: 45.2 kB / 485.1 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.277e-05/0.3949, allocations: 55.94 kB / 485.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007972/0.3957, allocations: 0.5181 MB / 485.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.3958, allocations: 7.875 kB / 485.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.387e-05/0.3958, allocations: 24 kB / 485.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.3958, allocations: 12 kB / 485.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006791/0.3965, allocations: 407.9 kB / 486.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002659/0.3992, allocations: 2.069 MB / 488.2 MB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007956/0.4, allocations: 0.6103 MB / 488.8 MB, free: 8.668 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005034/0.4005, allocations: 385.8 kB / 489.2 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.4006, allocations: 4.562 kB / 489.2 MB, free: 8.285 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.4006, allocations: 39.12 kB / 489.3 MB, free: 8.238 MB / 362.7 MB Notification: Performance of pre-optimization done (n=60): time 2.004e-06/0.4006, allocations: 0 / 489.3 MB, free: 8.238 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.002042/0.4026, allocations: 1.252 MB / 490.5 MB, free: 6.918 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.4027, allocations: 55.97 kB / 490.6 MB, free: 6.852 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/0.403, allocations: 311.5 kB / 490.9 MB, free: 6.543 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.019e-05/0.4031, allocations: 33.7 kB / 490.9 MB, free: 6.504 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.4032, allocations: 229.2 kB / 491.1 MB, free: 6.277 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.4034, allocations: 205.1 kB / 491.3 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.4034, allocations: 12 kB / 491.3 MB, free: 6.062 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.4035, allocations: 354.8 kB / 491.7 MB, free: 5.707 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002544/0.4038, allocations: 149.1 kB / 491.8 MB, free: 5.562 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.4041, allocations: 195.8 kB / 492 MB, free: 5.367 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.4043, allocations: 163.1 kB / 492.2 MB, free: 5.211 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.4044, allocations: 4 kB / 492.2 MB, free: 5.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001022/0.4054, allocations: 0.6306 MB / 492.8 MB, free: 4.555 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.4054, allocations: 9.047 kB / 492.8 MB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.4054, allocations: 0 / 492.8 MB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006746/0.4061, allocations: 255.2 kB / 493.1 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003225/0.4064, allocations: 63.89 kB / 493.1 MB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005816/0.4123, allocations: 6.746 MB / 499.9 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002853/0.4126, allocations: 20.02 kB / 499.9 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.4126, allocations: 16.19 kB / 499.9 MB, free: 12.9 MB / 378.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.0001182/0.4127, allocations: 137.1 kB / 0.4883 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.964e-05/0.4128, allocations: 51.44 kB / 0.4884 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.413, allocations: 60.95 kB / 0.4884 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.413, allocations: 15.98 kB / 0.4885 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.413, allocations: 3.953 kB / 0.4885 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.413, allocations: 0 / 0.4885 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.4149, allocations: 1.306 MB / 0.4897 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.4149, allocations: 3.984 kB / 0.4897 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.4152, allocations: 59.91 kB / 0.4898 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006111/0.4158, allocations: 255.4 kB / 0.49 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.483e-05/0.4159, allocations: 15.98 kB / 0.4901 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005587/0.4215, allocations: 6.766 MB / 0.4967 GB, free: 3.605 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4215, allocations: 3.984 kB / 0.4967 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.4229, allocations: 0.9743 MB / 0.4976 GB, free: 2.602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.4231, allocations: 152.5 kB / 0.4978 GB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.142e-05/0.4232, allocations: 8 kB / 0.4978 GB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.4234, allocations: 27.94 kB / 0.4978 GB, free: 2.398 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.4236, allocations: 60.42 kB / 0.4979 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.869e-05/0.4236, allocations: 16.11 kB / 0.4979 GB, free: 2.324 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002474/0.4238, allocations: 246.2 kB / 0.4981 GB, free: 2.082 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4239, allocations: 0 / 0.4981 GB, free: 2.082 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007589/0.4246, allocations: 176 kB / 0.4983 GB, free: 1.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.0001758/0.4248, allocations: 111.2 kB / 0.4984 GB, free: 1.793 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001294/0.4261, allocations: 0.9936 MB / 0.4993 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4261, allocations: 4.062 kB / 0.4993 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009534/0.4271, allocations: 0.8018 MB / 0.5001 GB, free: 15.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.4275, allocations: 81.61 kB / 0.5002 GB, free: 15.81 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.4292, allocations: 1.002 MB / 0.5012 GB, free: 14.78 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004137/0.4296, allocations: 0.8868 MB / 0.5021 GB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.4298, allocations: 52.53 kB / 0.5021 GB, free: 13.81 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.701e-05/0.4298, allocations: 31.44 kB / 0.5021 GB, free: 13.78 MB / 394.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4298, allocations: 0 / 0.5021 GB, free: 13.78 MB / 394.7 MB Notification: Performance of Templates: time 0.01245/0.4423, allocations: 7.861 MB / 0.5098 GB, free: 5.992 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches