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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000904/0.000904, allocations: 91.58 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009716/0.0009717, allocations: 184.4 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.3 MB / 242.3 MB, free: 92 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002323/0.0002323, allocations: 11.94 kB / 302.1 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07299/0.07323, allocations: 50.42 MB / 352.5 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.003645/0.07691, allocations: 3.857 MB / 356.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.07837, allocations: 0.9191 MB / 357.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002779/0.07867, allocations: 12 kB / 357.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.07888, allocations: 75.38 kB / 357.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004615/0.07935, allocations: 158.7 kB / 357.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.07965, allocations: 143.9 kB / 357.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006617/0.08032, allocations: 0.7126 MB / 358.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002936/0.08063, allocations: 196.1 kB / 358.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.08093, allocations: 246.9 kB / 358.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.08129, allocations: 302.5 kB / 359.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.774e-05/0.08136, allocations: 32 kB / 359.1 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.159e-05/0.08145, allocations: 36 kB / 359.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.08158, allocations: 111.5 kB / 359.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002615/0.08185, allocations: 324 kB / 359.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.08226, allocations: 0.4985 MB / 360.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.08227, allocations: 0 / 360.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.08228, allocations: 4 kB / 360.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.0823, allocations: 0 / 360.1 MB, free: 12.02 MB / 302.1 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.001262/0.08356, allocations: 0.8185 MB / 360.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.0836, allocations: 8.031 kB / 360.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.08372, allocations: 72.17 kB / 361 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004106/0.08413, allocations: 374 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.08417, allocations: 41.69 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.058e-05/0.08426, allocations: 52.38 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008938/0.08516, allocations: 0.5532 MB / 362 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.08518, allocations: 0 / 362 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.835e-05/0.08524, allocations: 24 kB / 362 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.08526, allocations: 12 kB / 362 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008508/0.08611, allocations: 463.7 kB / 362.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002597/0.08872, allocations: 2.069 MB / 364.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009061/0.08964, allocations: 0.6453 MB / 365.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000601/0.09025, allocations: 411 kB / 365.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.0903, allocations: 12.55 kB / 365.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.09033, allocations: 39.12 kB / 365.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 1.673e-06/0.09034, allocations: 0 / 365.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.004353/0.09469, allocations: 2.083 MB / 367.7 MB, free: 4.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.193e-05/0.09474, allocations: 59.97 kB / 367.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.0951, allocations: 357.7 kB / 368.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.09515, allocations: 45.58 kB / 368.2 MB, free: 3.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.09528, allocations: 225.2 kB / 368.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.09543, allocations: 197.1 kB / 368.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.937e-05/0.0955, allocations: 53.69 kB / 368.6 MB, free: 3.062 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.09562, allocations: 358.8 kB / 369 MB, free: 2.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.09598, allocations: 173 kB / 369.2 MB, free: 2.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003649/0.09635, allocations: 211.8 kB / 369.4 MB, free: 2.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007101/0.09707, allocations: 396.9 kB / 369.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.09708, allocations: 0 / 369.8 MB, free: 1.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001236/0.09833, allocations: 0.6851 MB / 370.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.09835, allocations: 7.938 kB / 370.5 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.09836, allocations: 0 / 370.5 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007062/0.09907, allocations: 255.2 kB / 370.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.09938, allocations: 71.89 kB / 370.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1442/0.2436, allocations: 6.786 MB / 377.6 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.2439, allocations: 20.12 kB / 377.6 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.244, allocations: 16.05 kB / 377.6 MB, free: 20.08 MB / 302.1 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 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001968/0.2442, allocations: 175.3 kB / 377.8 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.299e-05/0.2443, allocations: 52.16 kB / 377.8 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.2444, allocations: 62.23 kB / 377.9 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2444, allocations: 10.53 kB / 377.9 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.2444, allocations: 2.016 kB / 377.9 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.2444, allocations: 3.797 kB / 377.9 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.2465, allocations: 1.355 MB / 379.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2465, allocations: 0 / 379.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002822/0.2468, allocations: 61.06 kB / 379.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006365/0.2475, allocations: 258.1 kB / 379.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/0.2475, allocations: 13.11 kB / 379.6 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004674/0.2522, allocations: 6.804 MB / 386.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2522, allocations: 0 / 386.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.2539, allocations: 1.047 MB / 387.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.254, allocations: 161 kB / 387.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.956e-05/0.2541, allocations: 19.95 kB / 387.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.2544, allocations: 23.83 kB / 387.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.2545, allocations: 54.81 kB / 387.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.903e-05/0.2546, allocations: 15.27 kB / 387.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000242/0.2548, allocations: 256.8 kB / 387.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2548, allocations: 0 / 387.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008329/0.2556, allocations: 175.1 kB / 388.1 MB, free: 12.06 MB / 302.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001076/0.2558, allocations: 118 kB / 388.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.2571, allocations: 1.042 MB / 389.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2572, allocations: 0 / 389.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009654/0.2581, allocations: 0.8459 MB / 390.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005341/0.2587, allocations: 93.61 kB / 390.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.2608, allocations: 1.593 MB / 391.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.2611, allocations: 0.8761 MB / 392.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.803e-05/0.2612, allocations: 29.98 kB / 392.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2612, allocations: 0 / 392.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of Templates: time 0.01432/0.2756, allocations: 13.75 MB / 406.5 MB, free: 1.074 MB / 302.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches