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.001562/0.001562, allocations: 112.6 kB / 17.69 MB, free: 5.441 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.001777/0.001777, allocations: 191 kB / 18.63 MB, free: 4.508 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.363/1.363, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 51.67 kB / 302.1 MB, free: 5.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08253/0.08371, allocations: 49.45 MB / 351.5 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005559/0.08931, allocations: 4.251 MB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.09124, allocations: 0.919 MB / 356.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004518/0.09172, allocations: 15.94 kB / 356.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003511/0.09209, allocations: 95.06 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007044/0.09284, allocations: 190.2 kB / 357 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004032/0.09325, allocations: 159.8 kB / 357.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008715/0.09414, allocations: 0.7361 MB / 357.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.0945, allocations: 215.1 kB / 358.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003426/0.09485, allocations: 286.9 kB / 358.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004052/0.09527, allocations: 330.5 kB / 358.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.861e-05/0.09537, allocations: 64 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.701e-05/0.09547, allocations: 60 kB / 358.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.09565, allocations: 143.5 kB / 358.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002901/0.09595, allocations: 326.4 kB / 359.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006236/0.09658, allocations: 0.7122 MB / 360 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.0966, allocations: 8 kB / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.09661, allocations: 0 / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.09663, allocations: 0 / 360 MB, free: 11.22 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.001469/0.0981, allocations: 0.9041 MB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.09814, allocations: 8.031 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.09825, allocations: 72.09 kB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005385/0.0988, allocations: 386 kB / 361.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.167e-05/0.09884, allocations: 37.69 kB / 361.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.038e-05/0.09893, allocations: 48.38 kB / 361.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000835/0.09977, allocations: 0.5532 MB / 362 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.09979, allocations: 0 / 362 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.09984, allocations: 20 kB / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.09986, allocations: 12 kB / 362 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008178/0.1007, allocations: 451.6 kB / 362.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002621/0.1033, allocations: 2.026 MB / 364.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008525/0.1042, allocations: 0.6472 MB / 365.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005439/0.1047, allocations: 398.1 kB / 365.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.198e-05/0.1048, allocations: 4.562 kB / 365.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.1048, allocations: 47.12 kB / 365.6 MB, free: 5.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 2.044e-06/0.1048, allocations: 0 / 365.6 MB, free: 5.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.004134/0.109, allocations: 2.036 MB / 367.6 MB, free: 3.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.109, allocations: 59.97 kB / 367.7 MB, free: 3.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.1094, allocations: 361.7 kB / 368 MB, free: 2.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.546e-05/0.1094, allocations: 37.64 kB / 368 MB, free: 2.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.1096, allocations: 237.1 kB / 368.3 MB, free: 2.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.1097, allocations: 201.1 kB / 368.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.1099, allocations: 86.25 kB / 368.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.11, allocations: 354.8 kB / 368.9 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003146/0.1103, allocations: 169 kB / 369.1 MB, free: 1.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003331/0.1107, allocations: 215.8 kB / 369.3 MB, free: 1.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006222/0.1113, allocations: 380.9 kB / 369.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1113, allocations: 0 / 369.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001138/0.1124, allocations: 0.6695 MB / 370.3 MB, free: 440 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1125, allocations: 7.938 kB / 370.3 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1125, allocations: 0 / 370.3 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006931/0.1132, allocations: 255.2 kB / 370.6 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000324/0.1135, allocations: 63.91 kB / 370.6 MB, free: 100 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1566/0.2702, allocations: 7.494 MB / 378.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.2705, allocations: 20.97 kB / 378.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.2706, allocations: 16.55 kB / 378.2 MB, free: 19.49 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.0002342/0.2708, allocations: 174.4 kB / 378.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.267e-05/0.2709, allocations: 49.38 kB / 378.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.271, allocations: 65.22 kB / 378.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.2711, allocations: 5.625 kB / 378.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.2711, allocations: 6.984 kB / 378.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.2711, allocations: 2.859 kB / 378.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.2731, allocations: 1.342 MB / 379.8 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.2731, allocations: 0 / 379.8 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.2734, allocations: 56.77 kB / 379.9 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006403/0.274, allocations: 261.2 kB / 380.1 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.2741, allocations: 14.39 kB / 380.1 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004931/0.279, allocations: 7.503 MB / 387.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.279, allocations: 2.172 kB / 387.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.2806, allocations: 1.034 MB / 388.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.2808, allocations: 157.7 kB / 388.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.736e-05/0.2809, allocations: 15.66 kB / 388.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.2811, allocations: 16.59 kB / 388.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.2813, allocations: 49.67 kB / 388.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.2813, allocations: 16.25 kB / 388.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000262/0.2816, allocations: 255.5 kB / 389.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2816, allocations: 1.219 kB / 389.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008832/0.2825, allocations: 175.2 kB / 389.3 MB, free: 10.79 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.0001307/0.2826, allocations: 115.9 kB / 389.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.284, allocations: 1.039 MB / 390.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.284, allocations: 0 / 390.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009426/0.285, allocations: 0.8438 MB / 391.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004802/0.2855, allocations: 88.05 kB / 391.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.2875, allocations: 1.259 MB / 392.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.2878, allocations: 0.8766 MB / 393.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001696/0.288, allocations: 54.23 kB / 393.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.268e-05/0.2881, allocations: 29.72 kB / 393.6 MB, free: 7.938 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2881, allocations: 0 / 393.6 MB, free: 7.938 MB / 302.1 MB Notification: Performance of Templates: time 0.01419/0.3023, allocations: 8.976 MB / 402.6 MB, free: 4.613 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 -s gbode -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