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.001361/0.001361, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.462/1.462, allocations: 222.9 MB / 240.9 MB, free: 11 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.001265/0.001264, allocations: 111.3 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008362/0.0008362, allocations: 39.94 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2904, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004891/0.2953, allocations: 4.259 MB / 403.7 MB, free: 29.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.2968, allocations: 0.9335 MB / 404.7 MB, free: 28.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.2971, allocations: 8 kB / 404.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002627/0.2973, allocations: 71.44 kB / 404.7 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004658/0.2978, allocations: 162.7 kB / 404.9 MB, free: 27.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00032/0.2981, allocations: 147.8 kB / 405 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006254/0.2988, allocations: 0.7166 MB / 405.8 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003037/0.2991, allocations: 196.1 kB / 406 MB, free: 26.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002604/0.2993, allocations: 266.9 kB / 406.2 MB, free: 26.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003179/0.2997, allocations: 318.6 kB / 406.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.641e-05/0.2998, allocations: 40 kB / 406.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.822e-05/0.2998, allocations: 44 kB / 406.6 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.3, allocations: 131.4 kB / 406.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002145/0.3002, allocations: 306.3 kB / 407 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004449/0.3007, allocations: 0.6732 MB / 407.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3007, allocations: 0 / 407.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3007, allocations: 0 / 407.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.3007, allocations: 0 / 407.7 MB, free: 25.09 MB / 298.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.001384/0.3021, allocations: 0.9158 MB / 408.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.3021, allocations: 12.03 kB / 408.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.075e-05/0.3022, allocations: 68.12 kB / 408.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.3026, allocations: 381.9 kB / 409.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.3026, allocations: 37.69 kB / 409.1 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.297e-05/0.3027, allocations: 48.38 kB / 409.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007407/0.3035, allocations: 0.5493 MB / 409.7 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.3035, allocations: 4 kB / 409.7 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.075e-05/0.3036, allocations: 20 kB / 409.7 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3036, allocations: 12 kB / 409.7 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007027/0.3043, allocations: 451.7 kB / 410.2 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.3065, allocations: 2.038 MB / 412.2 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007396/0.3073, allocations: 0.6452 MB / 412.9 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005231/0.3078, allocations: 407.7 kB / 413.3 MB, free: 19.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.3079, allocations: 4.562 kB / 413.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.3079, allocations: 47.11 kB / 413.3 MB, free: 19.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 2.144e-06/0.3079, allocations: 0 / 413.3 MB, free: 19.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.003807/0.3117, allocations: 2.024 MB / 415.3 MB, free: 17.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.3118, allocations: 63.97 kB / 415.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000279/0.3121, allocations: 361.7 kB / 415.8 MB, free: 16.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.3121, allocations: 37.7 kB / 415.8 MB, free: 16.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.7e-05/0.3122, allocations: 229.2 kB / 416 MB, free: 16.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.849e-05/0.3123, allocations: 205 kB / 416.2 MB, free: 16.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.3124, allocations: 86.25 kB / 416.3 MB, free: 16.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.621e-05/0.3125, allocations: 358.8 kB / 416.6 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/0.3128, allocations: 165 kB / 416.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.3131, allocations: 215.8 kB / 417 MB, free: 15.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005592/0.3137, allocations: 380.8 kB / 417.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3137, allocations: 0 / 417.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009827/0.3147, allocations: 0.6695 MB / 418.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3147, allocations: 7.938 kB / 418.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.3147, allocations: 4 kB / 418.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006296/0.3154, allocations: 259.2 kB / 418.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002813/0.3156, allocations: 55.91 kB / 418.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004477/0.3201, allocations: 6.77 MB / 425.2 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/0.3205, allocations: 24.08 kB / 425.2 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.3205, allocations: 16 kB / 425.2 MB, free: 6.613 MB / 298.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 (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.0001845/0.3207, allocations: 169.2 kB / 425.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.766e-05/0.3208, allocations: 51.44 kB / 425.4 MB, free: 6.391 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.3209, allocations: 64.95 kB / 425.5 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3209, allocations: 8 kB / 425.5 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.3209, allocations: 7.938 kB / 425.5 MB, free: 6.312 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3209, allocations: 3.984 kB / 425.5 MB, free: 6.309 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.3226, allocations: 1.337 MB / 426.8 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3227, allocations: 0 / 426.8 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000247/0.3229, allocations: 59.91 kB / 426.9 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000613/0.3235, allocations: 271.4 kB / 427.1 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.05e-05/0.3236, allocations: 8 kB / 427.2 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005583/0.3292, allocations: 6.785 MB / 433.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3292, allocations: 0 / 433.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01623/0.3455, allocations: 11.37 MB / 445.3 MB, free: 1.129 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.3459, allocations: 160.5 kB / 445.5 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.718e-05/0.346, allocations: 11.94 kB / 445.5 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003144/0.3463, allocations: 24.17 kB / 445.5 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.3466, allocations: 48.48 kB / 445.6 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.86e-05/0.3466, allocations: 20 kB / 445.6 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003286/0.3469, allocations: 259.2 kB / 445.8 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.347, allocations: 0 / 445.8 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001475/0.3484, allocations: 248.4 kB / 446.1 MB, free: 364 kB / 314.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 (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.0002038/0.3486, allocations: 115.2 kB / 446.2 MB, free: 240 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.3505, allocations: 1.029 MB / 447.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3505, allocations: 0 / 447.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.352, allocations: 0.8528 MB / 448.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007679/0.3528, allocations: 81.45 kB / 448.1 MB, free: 14.17 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/0.3571, allocations: 2.42 MB / 450.6 MB, free: 11.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007063/0.3578, allocations: 0.8992 MB / 451.5 MB, free: 10.73 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002551/0.3581, allocations: 48.55 kB / 451.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.275e-05/0.3582, allocations: 27.44 kB / 451.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of SimCode: time 1.583e-06/0.3582, allocations: 0 / 451.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of Templates: time 0.02009/0.3783, allocations: 10.5 MB / 462 MB, free: 236 kB / 330.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@2/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