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.001491/0.001491, allocations: 181.2 kB / 16.39 MB, free: 5.762 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.326/1.326, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.0008695/0.0008696, allocations: 97.28 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002773/0.0002774, allocations: 15.94 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2437, allocations: 50.39 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09867/0.3424, allocations: 80.53 MB / 482 MB, free: 15.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.3427, allocations: 75.95 kB / 482.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02378/0.3665, allocations: 9.104 MB / 491.2 MB, free: 6.734 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3665, allocations: 0 / 491.2 MB, free: 6.734 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.576e-05/0.3665, allocations: 16 kB / 491.2 MB, free: 6.719 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.001716/0.3683, allocations: 0.8143 MB / 492 MB, free: 5.852 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.3683, allocations: 12.03 kB / 492 MB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.3685, allocations: 71.23 kB / 492.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005339/0.3691, allocations: 364.9 kB / 492.5 MB, free: 5.371 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/0.3691, allocations: 53.14 kB / 492.5 MB, free: 5.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.219e-05/0.3692, allocations: 52 kB / 492.6 MB, free: 5.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009228/0.3701, allocations: 0.5343 MB / 493.1 MB, free: 4.711 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.3702, allocations: 7.938 kB / 493.1 MB, free: 4.703 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.387e-05/0.3702, allocations: 20 kB / 493.1 MB, free: 4.684 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.3702, allocations: 12 kB / 493.1 MB, free: 4.672 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008052/0.371, allocations: 455.7 kB / 493.6 MB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002693/0.3737, allocations: 2.073 MB / 495.7 MB, free: 2.066 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008567/0.3746, allocations: 0.6352 MB / 496.3 MB, free: 1.402 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.3747, allocations: 12.5 kB / 496.3 MB, free: 1.391 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.3747, allocations: 35.12 kB / 496.3 MB, free: 1.348 MB / 362.7 MB Notification: Performance of pre-optimization done (n=60): time 2.485e-06/0.3747, allocations: 3.938 kB / 496.3 MB, free: 1.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.004006/0.3787, allocations: 1.976 MB / 498.3 MB, free: 15.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.3788, allocations: 63.95 kB / 498.4 MB, free: 15.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/0.3791, allocations: 324.7 kB / 498.7 MB, free: 14.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.3792, allocations: 37.7 kB / 498.7 MB, free: 14.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.3793, allocations: 229.2 kB / 499 MB, free: 14.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.3795, allocations: 197.1 kB / 499.2 MB, free: 14.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.276e-05/0.3795, allocations: 12 kB / 499.2 MB, free: 14.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3797, allocations: 354.8 kB / 499.5 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003085/0.38, allocations: 165 kB / 499.7 MB, free: 13.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.3803, allocations: 223.7 kB / 499.9 MB, free: 13.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.3807, allocations: 182.2 kB / 0.4884 GB, free: 13.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.3807, allocations: 0 / 0.4884 GB, free: 13.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001123/0.3818, allocations: 0.6851 MB / 0.489 GB, free: 12.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.3818, allocations: 4 kB / 0.489 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.371e-06/0.3818, allocations: 0 / 0.489 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006851/0.3825, allocations: 263.1 kB / 0.4893 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.3828, allocations: 67.89 kB / 0.4893 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005792/0.3886, allocations: 6.833 MB / 0.496 GB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003517/0.389, allocations: 24.02 kB / 0.496 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.631e-05/0.3891, allocations: 16 kB / 0.4961 GB, free: 5.004 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.0002511/0.3893, allocations: 170.3 kB / 0.4962 GB, free: 4.828 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.745e-05/0.3894, allocations: 51.5 kB / 0.4963 GB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.3896, allocations: 72.94 kB / 0.4963 GB, free: 4.707 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.3896, allocations: 4 kB / 0.4963 GB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.3896, allocations: 4 kB / 0.4963 GB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3896, allocations: 7.938 kB / 0.4963 GB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.3916, allocations: 1.341 MB / 0.4977 GB, free: 3.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3916, allocations: 0 / 0.4977 GB, free: 3.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002784/0.3919, allocations: 63.95 kB / 0.4977 GB, free: 3.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006478/0.3925, allocations: 263.3 kB / 0.498 GB, free: 2.949 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.313e-05/0.3926, allocations: 8 kB / 0.498 GB, free: 2.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2103/0.6029, allocations: 6.827 MB / 0.5046 GB, free: 94.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.603, allocations: 1.781 kB / 0.5046 GB, free: 94.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.6047, allocations: 1.039 MB / 0.5057 GB, free: 94.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.6049, allocations: 164.8 kB / 0.5058 GB, free: 94.15 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.37e-05/0.605, allocations: 13.5 kB / 0.5058 GB, free: 94.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.6053, allocations: 20.22 kB / 0.5058 GB, free: 94.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.6054, allocations: 53.14 kB / 0.5059 GB, free: 94.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.6055, allocations: 16.41 kB / 0.5059 GB, free: 94.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002482/0.6057, allocations: 256.7 kB / 0.5062 GB, free: 94.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6057, allocations: 0 / 0.5062 GB, free: 94.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008318/0.6066, allocations: 172.2 kB / 0.5063 GB, free: 94.07 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.0001691/0.6067, allocations: 118.1 kB / 0.5064 GB, free: 93.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.6084, allocations: 1.05 MB / 0.5075 GB, free: 93.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.6084, allocations: 0.75 kB / 0.5075 GB, free: 93.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.6095, allocations: 0.8433 MB / 0.5083 GB, free: 93.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.6098, allocations: 78.12 kB / 0.5084 GB, free: 93.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.612, allocations: 1.524 MB / 0.5098 GB, free: 92.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.6123, allocations: 0.8934 MB / 0.5107 GB, free: 91.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.6125, allocations: 46.73 kB / 0.5108 GB, free: 91.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.489e-05/0.6126, allocations: 27.94 kB / 0.5108 GB, free: 91.62 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.6126, allocations: 0 / 0.5108 GB, free: 91.62 MB / 378.7 MB Notification: Performance of Templates: time 0.01191/0.6245, allocations: 7.885 MB / 0.5185 GB, free: 90.05 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/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