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.0009439/0.0009439, allocations: 176.2 kB / 17.4 MB, free: 4.301 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.362/1.362, allocations: 223.3 MB / 241.4 MB, free: 9.848 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009346/0.0009352, allocations: 91.2 kB / 292.6 MB, free: 10.53 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004462/0.0004462, allocations: 15.94 kB / 352.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2555, allocations: 50.41 MB / 402.7 MB, free: 32.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.099/0.3545, allocations: 80.58 MB / 483.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.3548, allocations: 71.95 kB / 483.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02483/0.3797, allocations: 9.114 MB / 492.5 MB, free: 6.465 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3797, allocations: 0 / 492.5 MB, free: 6.465 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.547e-05/0.3798, allocations: 16 kB / 492.5 MB, free: 6.449 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.001957/0.3817, allocations: 0.8145 MB / 493.3 MB, free: 5.582 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.3818, allocations: 12.03 kB / 493.3 MB, free: 5.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002696/0.3821, allocations: 68.19 kB / 493.4 MB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006411/0.3827, allocations: 374 kB / 493.8 MB, free: 5.098 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.3828, allocations: 41.69 kB / 493.8 MB, free: 5.055 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3829, allocations: 56.28 kB / 493.9 MB, free: 5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.384, allocations: 0.5465 MB / 494.4 MB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.384, allocations: 192 / 494.4 MB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.585e-05/0.384, allocations: 23.94 kB / 494.4 MB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.3841, allocations: 12 kB / 494.5 MB, free: 4.395 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009291/0.385, allocations: 463.7 kB / 494.9 MB, free: 3.941 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003214/0.3882, allocations: 2.073 MB / 497 MB, free: 1.781 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000938/0.3892, allocations: 0.6308 MB / 497.6 MB, free: 1.121 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006182/0.3898, allocations: 407.3 kB / 498 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-05/0.3899, allocations: 8.562 kB / 498 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.3899, allocations: 43.11 kB / 498.1 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of pre-optimization done (n=60): time 4.338e-06/0.3899, allocations: 4 kB / 498.1 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.004398/0.3943, allocations: 1.99 MB / 0.4883 GB, free: 14.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.3944, allocations: 55.97 kB / 0.4884 GB, free: 14.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004398/0.3948, allocations: 365.6 kB / 0.4887 GB, free: 14.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.652e-05/0.3949, allocations: 33.7 kB / 0.4888 GB, free: 14.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.3951, allocations: 225.2 kB / 0.489 GB, free: 13.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001662/0.3952, allocations: 213 kB / 0.4892 GB, free: 13.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.563e-05/0.3953, allocations: 12 kB / 0.4892 GB, free: 13.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3955, allocations: 354.7 kB / 0.4895 GB, free: 13.28 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003576/0.3958, allocations: 169 kB / 0.4897 GB, free: 13.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003825/0.3962, allocations: 227.7 kB / 0.4899 GB, free: 12.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000696/0.3969, allocations: 388.8 kB / 0.4903 GB, free: 12.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3969, allocations: 4 kB / 0.4903 GB, free: 12.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001283/0.3982, allocations: 0.6812 MB / 0.491 GB, free: 11.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.3983, allocations: 4 kB / 0.491 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3983, allocations: 0 / 0.491 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007096/0.399, allocations: 251.2 kB / 0.4912 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.3993, allocations: 63.89 kB / 0.4913 GB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006849/0.4062, allocations: 6.778 MB / 0.4979 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/0.4066, allocations: 20.58 kB / 0.4979 GB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.379e-05/0.4066, allocations: 19.94 kB / 0.4979 GB, free: 4.117 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 () * Number of clocked 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.0003096/0.4069, allocations: 173.9 kB / 0.4981 GB, free: 3.938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.4071, allocations: 55.28 kB / 0.4981 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.4072, allocations: 64.94 kB / 0.4982 GB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.4072, allocations: 8 kB / 0.4982 GB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.4072, allocations: 3.938 kB / 0.4982 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.4072, allocations: 7.984 kB / 0.4982 GB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002244/0.4095, allocations: 1.349 MB / 0.4995 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.4095, allocations: 0 / 0.4995 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.4098, allocations: 67.89 kB / 0.4996 GB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00071/0.4105, allocations: 247.2 kB / 0.4998 GB, free: 2.055 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.71e-05/0.4106, allocations: 15.94 kB / 0.4999 GB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2099/0.6205, allocations: 6.775 MB / 0.5065 GB, free: 94.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.6205, allocations: 3.375 kB / 0.5065 GB, free: 94.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001924/0.6224, allocations: 1.042 MB / 0.5075 GB, free: 93.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002089/0.6227, allocations: 157.4 kB / 0.5076 GB, free: 93.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.6227, allocations: 8.969 kB / 0.5076 GB, free: 93.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.623, allocations: 22.69 kB / 0.5077 GB, free: 93.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.6232, allocations: 56.83 kB / 0.5077 GB, free: 93.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.6232, allocations: 18.17 kB / 0.5077 GB, free: 93.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002836/0.6235, allocations: 253.7 kB / 0.508 GB, free: 93.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.6235, allocations: 0 / 0.508 GB, free: 93.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009608/0.6245, allocations: 176.3 kB / 0.5082 GB, free: 93.76 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 () * Number of clocked 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.0001826/0.6246, allocations: 115 kB / 0.5083 GB, free: 93.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001768/0.6264, allocations: 1.044 MB / 0.5093 GB, free: 93.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6264, allocations: 4.531 kB / 0.5093 GB, free: 93.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.6275, allocations: 0.8533 MB / 0.5101 GB, free: 92.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005005/0.628, allocations: 79.78 kB / 0.5102 GB, free: 92.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.6299, allocations: 1.529 MB / 0.5117 GB, free: 92.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.6302, allocations: 0.8788 MB / 0.5125 GB, free: 91.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001489/0.6303, allocations: 46.16 kB / 0.5126 GB, free: 91.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.968e-05/0.6304, allocations: 30.17 kB / 0.5126 GB, free: 91.3 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.6304, allocations: 0 / 0.5126 GB, free: 91.3 MB / 378.7 MB Notification: Performance of Templates: time 0.01241/0.6428, allocations: 7.94 MB / 0.5204 GB, free: 89.69 MB / 378.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/jenkins1/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