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: 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_trunk_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_trunk_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 trunk/package.mo): time 0.001518/0.001519, allocations: 205.5 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008621/0.0008622, allocations: 92.19 kB / 286.3 MB, free: 5.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.674e-06, allocations: 4 kB / 343.1 MB, free: 8.715 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08393/0.08395, allocations: 51.47 MB / 394.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2663/0.3503, allocations: 80.54 MB / 475.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.3506, allocations: 69.88 kB / 475.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03487/0.3855, allocations: 8.864 MB / 484.1 MB, free: 5.285 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.263e-05/0.3856, allocations: 12 kB / 484.1 MB, free: 5.273 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.001708/0.3873, allocations: 0.7697 MB / 484.9 MB, free: 4.496 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.3874, allocations: 8.031 kB / 484.9 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006073/0.388, allocations: 107.2 kB / 485 MB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006498/0.3887, allocations: 365.9 kB / 485.3 MB, free: 4.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.3887, allocations: 18.19 kB / 485.4 MB, free: 4.016 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.3888, allocations: 31.91 kB / 485.4 MB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001044/0.3899, allocations: 374.9 kB / 485.8 MB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.3909, allocations: 450.5 kB / 486.2 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.3909, allocations: 0 / 486.2 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.911e-05/0.391, allocations: 0 / 486.2 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.391, allocations: 19.39 kB / 486.2 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003692/0.3947, allocations: 1.966 MB / 488.2 MB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005524/0.3953, allocations: 238.3 kB / 488.4 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006915/0.396, allocations: 360.6 kB / 488.8 MB, free: 1.328 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-05/0.3961, allocations: 4.5 kB / 488.8 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3961, allocations: 43 kB / 488.8 MB, free: 1.277 MB / 346.7 MB Notification: Performance of pre-optimization done (n=60): time 2.475e-06/0.3961, allocations: 3.938 kB / 488.8 MB, free: 1.273 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.002843/0.399, allocations: 1.131 MB / 489.9 MB, free: 336 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.46e-05/0.399, allocations: 67.81 kB / 490 MB, free: 252 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004168/0.3994, allocations: 267.2 kB / 490.3 MB, free: 36 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.121e-05/0.3995, allocations: 25.7 kB / 490.3 MB, free: 4 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.3997, allocations: 188.7 kB / 490.5 MB, free: 15.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002021/0.3999, allocations: 195.8 kB / 490.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.439e-05/0.4, allocations: 0 / 490.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.4001, allocations: 358 kB / 491 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000422/0.4006, allocations: 137.2 kB / 491.2 MB, free: 15.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004238/0.401, allocations: 185.3 kB / 491.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/0.4014, allocations: 154.8 kB / 491.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.4014, allocations: 4 kB / 491.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001452/0.4029, allocations: 0.5732 MB / 492.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.4029, allocations: 4 kB / 492.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.4029, allocations: 4 kB / 492.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009713/0.4039, allocations: 249.7 kB / 492.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004368/0.4044, allocations: 55.97 kB / 492.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008/0.4124, allocations: 6.411 MB / 498.8 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004645/0.4129, allocations: 11.98 kB / 498.8 MB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.206e-05/0.4129, allocations: 15.31 kB / 498.8 MB, free: 8.016 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.0001989/0.4131, allocations: 113 kB / 498.9 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.4133, allocations: 55.38 kB / 499 MB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001602/0.4135, allocations: 52.88 kB / 499 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/0.4135, allocations: 4 kB / 499 MB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/0.4135, allocations: 4 kB / 499 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.4136, allocations: 3.984 kB / 499 MB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.4163, allocations: 1.155 MB / 0.4885 GB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.4163, allocations: 0 / 0.4885 GB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004593/0.4168, allocations: 61.34 kB / 0.4885 GB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009876/0.4178, allocations: 245 kB / 0.4888 GB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.749e-05/0.4179, allocations: 5.922 kB / 0.4888 GB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008538/0.4264, allocations: 6.4 MB / 0.495 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4265, allocations: 0 / 0.495 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002022/0.4285, allocations: 0.9063 MB / 0.4959 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.4287, allocations: 159.2 kB / 0.4961 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.331e-05/0.4288, allocations: 0 / 0.4961 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000268/0.429, allocations: 11.98 kB / 0.4961 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.362e-05/0.4291, allocations: 30.95 kB / 0.4961 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/0.4292, allocations: 21.55 kB / 0.4961 GB, free: 15.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002316/0.4294, allocations: 209.5 kB / 0.4963 GB, free: 15.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008217/0.4302, allocations: 156 kB / 0.4965 GB, free: 15.16 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.000166/0.4304, allocations: 105.7 kB / 0.4966 GB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.4316, allocations: 0.8625 MB / 0.4974 GB, free: 14.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4316, allocations: 0 / 0.4974 GB, free: 14.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000861/0.4325, allocations: 0.6981 MB / 0.4981 GB, free: 13.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.4329, allocations: 50.86 kB / 0.4981 GB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.4348, allocations: 0.9737 MB / 0.4991 GB, free: 12.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004464/0.4353, allocations: 0.8968 MB / 0.5 GB, free: 11.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.4353, allocations: 4 kB / 0.5 GB, free: 11.79 MB / 378.7 MB Notification: Performance of Templates: time 0.01176/0.4471, allocations: 7.644 MB / 0.5074 GB, free: 4.281 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches