Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000872/0.0008721, allocations: 182.3 kB / 16.71 MB, free: 4.945 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.209/1.209, allocations: 225.7 MB / 243.2 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007911/0.0007912, allocations: 93.25 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002384/0.0002384, allocations: 7.938 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2132, allocations: 50.4 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.002803/0.216, allocations: 3.67 MB / 408.2 MB, free: 27.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009153/0.2169, allocations: 0.8959 MB / 409.1 MB, free: 26.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.2171, allocations: 8 kB / 409.1 MB, free: 26.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.2173, allocations: 72.28 kB / 409.2 MB, free: 26.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003273/0.2176, allocations: 171.4 kB / 409.4 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001961/0.2178, allocations: 143.8 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005138/0.2183, allocations: 0.7149 MB / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002567/0.2186, allocations: 196 kB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.2188, allocations: 243 kB / 410.7 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.2191, allocations: 294.6 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.827e-05/0.2191, allocations: 32 kB / 411 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.2192, allocations: 36 kB / 411 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.2193, allocations: 123.4 kB / 411.1 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001933/0.2195, allocations: 320 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003576/0.2199, allocations: 0.6536 MB / 412.1 MB, free: 23.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2199, allocations: 0 / 412.1 MB, free: 23.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2199, allocations: 4 kB / 412.1 MB, free: 23.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2199, allocations: 0 / 412.1 MB, free: 23.74 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.0009959/0.2209, allocations: 0.8197 MB / 412.9 MB, free: 22.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.221, allocations: 8.031 kB / 412.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.812e-05/0.2211, allocations: 68.09 kB / 413 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.2214, allocations: 382 kB / 413.4 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.2214, allocations: 45.69 kB / 413.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.42e-05/0.2215, allocations: 48.38 kB / 413.5 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007215/0.2222, allocations: 0.5532 MB / 414 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.2222, allocations: 0 / 414 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/0.2223, allocations: 20 kB / 414 MB, free: 21.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.2223, allocations: 12 kB / 414.1 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006725/0.223, allocations: 455.7 kB / 414.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.225, allocations: 2.077 MB / 416.6 MB, free: 19.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006937/0.2257, allocations: 0.6453 MB / 417.2 MB, free: 18.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004659/0.2262, allocations: 402.1 kB / 417.6 MB, free: 18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.2262, allocations: 12.56 kB / 417.6 MB, free: 17.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.2263, allocations: 43.12 kB / 417.7 MB, free: 17.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 1.462e-06/0.2263, allocations: 0 / 417.7 MB, free: 17.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.00349/0.2298, allocations: 2.067 MB / 419.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.2298, allocations: 59.97 kB / 419.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002563/0.2301, allocations: 357.6 kB / 420.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.2301, allocations: 33.7 kB / 420.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.54e-05/0.2302, allocations: 233.2 kB / 420.4 MB, free: 15.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.602e-05/0.2303, allocations: 201 kB / 420.6 MB, free: 14.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.989e-05/0.2303, allocations: 12 kB / 420.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.086e-05/0.2304, allocations: 358.8 kB / 421 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.2307, allocations: 173 kB / 421.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.2309, allocations: 215.8 kB / 421.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/0.2315, allocations: 388.9 kB / 421.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2315, allocations: 0 / 421.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009045/0.2324, allocations: 0.6773 MB / 422.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.2324, allocations: 8 kB / 422.4 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.2324, allocations: 0 / 422.4 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005787/0.233, allocations: 255.1 kB / 422.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.2333, allocations: 67.94 kB / 422.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004114/0.2374, allocations: 6.773 MB / 429.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.2376, allocations: 20.16 kB / 429.5 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.2377, allocations: 20.09 kB / 429.5 MB, free: 5.324 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 (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 (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.0001582/0.2378, allocations: 177.8 kB / 429.7 MB, free: 5.141 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.885e-05/0.2379, allocations: 51.34 kB / 429.8 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.1e-05/0.238, allocations: 73.02 kB / 429.8 MB, free: 5.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.238, allocations: 4 kB / 429.8 MB, free: 5.016 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.238, allocations: 4 kB / 429.8 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.238, allocations: 7.922 kB / 429.8 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.2396, allocations: 1.341 MB / 431.2 MB, free: 3.594 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2396, allocations: 3.938 kB / 431.2 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.2398, allocations: 63.95 kB / 431.2 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000521/0.2404, allocations: 255.1 kB / 431.5 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.2404, allocations: 12 kB / 431.5 MB, free: 3.254 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004849/0.2453, allocations: 6.79 MB / 438.3 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2453, allocations: 0 / 438.3 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.2469, allocations: 1.044 MB / 439.3 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000166/0.247, allocations: 152.6 kB / 439.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.11e-05/0.2471, allocations: 15.88 kB / 439.5 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.2473, allocations: 28.11 kB / 439.5 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.2475, allocations: 56.48 kB / 439.6 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-05/0.2475, allocations: 19.98 kB / 439.6 MB, free: 10.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002424/0.2478, allocations: 251.2 kB / 439.9 MB, free: 10.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2478, allocations: 3.938 kB / 439.9 MB, free: 10.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007313/0.2485, allocations: 172 kB / 440 MB, free: 10.15 MB / 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.0001493/0.2487, allocations: 119.2 kB / 440.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.25, allocations: 1.041 MB / 441.2 MB, free: 8.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2501, allocations: 0 / 441.2 MB, free: 8.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.2511, allocations: 0.8492 MB / 442 MB, free: 8.031 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004716/0.2516, allocations: 85.34 kB / 442.1 MB, free: 7.949 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.2536, allocations: 1.564 MB / 443.7 MB, free: 6.359 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.254, allocations: 0.8754 MB / 444.6 MB, free: 5.453 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001784/0.2542, allocations: 56.53 kB / 444.6 MB, free: 5.398 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.912e-05/0.2543, allocations: 31.38 kB / 444.6 MB, free: 5.371 MB / 314.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2543, allocations: 0 / 444.6 MB, free: 5.371 MB / 314.7 MB Notification: Performance of Templates: time 0.01263/0.2669, allocations: 8.11 MB / 452.8 MB, free: 13.27 MB / 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/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