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.001313/0.001313, allocations: 106.2 kB / 17.06 MB, free: 6.023 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.001358/0.001358, allocations: 191 kB / 18 MB, free: 5.105 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.648/1.648, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 51.92 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3824, allocations: 49.42 MB / 400.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.006337/0.3888, allocations: 4.253 MB / 405 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.391, allocations: 0.9319 MB / 405.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000223/0.3913, allocations: 8 kB / 405.9 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.3915, allocations: 99 kB / 406 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005176/0.3921, allocations: 198.2 kB / 406.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000347/0.3925, allocations: 167.8 kB / 406.4 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007897/0.3933, allocations: 0.736 MB / 407.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004355/0.3937, allocations: 211.1 kB / 407.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003855/0.3941, allocations: 286.9 kB / 407.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004363/0.3946, allocations: 326.6 kB / 407.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.3947, allocations: 67.94 kB / 408 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.3948, allocations: 60 kB / 408 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002096/0.395, allocations: 151.4 kB / 408.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003282/0.3954, allocations: 326.3 kB / 408.5 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007733/0.3961, allocations: 0.7084 MB / 409.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3962, allocations: 3.938 kB / 409.2 MB, free: 500 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.3962, allocations: 0 / 409.2 MB, free: 500 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.3962, allocations: 0 / 409.2 MB, free: 500 kB / 318.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.001687/0.3979, allocations: 0.9108 MB / 410.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.957e-05/0.398, allocations: 12.03 kB / 410.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.3981, allocations: 64.19 kB / 410.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000624/0.3987, allocations: 381.9 kB / 410.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.54e-05/0.3988, allocations: 41.69 kB / 410.6 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.3989, allocations: 52.38 kB / 410.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.3999, allocations: 0.5454 MB / 411.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.4, allocations: 0 / 411.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.058e-05/0.4, allocations: 20 kB / 411.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.532e-05/0.4, allocations: 12 kB / 411.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009139/0.401, allocations: 459.6 kB / 411.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0032/0.4042, allocations: 2.026 MB / 413.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.4052, allocations: 0.6415 MB / 414.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006484/0.4059, allocations: 398.2 kB / 414.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.92e-05/0.4059, allocations: 12.55 kB / 414.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.969e-05/0.406, allocations: 35.12 kB / 414.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=60): time 7.314e-06/0.406, allocations: 0 / 414.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004604/0.4106, allocations: 2.04 MB / 416.8 MB, free: 8.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.4107, allocations: 55.97 kB / 416.9 MB, free: 8.434 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005314/0.4112, allocations: 369.6 kB / 417.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.869e-05/0.4113, allocations: 33.7 kB / 417.3 MB, free: 8.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.4115, allocations: 225.2 kB / 417.5 MB, free: 7.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002107/0.4117, allocations: 201.1 kB / 417.7 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.4119, allocations: 98.16 kB / 417.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002308/0.4121, allocations: 354.8 kB / 418.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.4125, allocations: 165 kB / 418.3 MB, free: 6.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.4129, allocations: 211.8 kB / 418.5 MB, free: 6.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007007/0.4136, allocations: 380.9 kB / 418.9 MB, free: 6.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.4136, allocations: 3.938 kB / 418.9 MB, free: 6.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001218/0.4148, allocations: 0.6734 MB / 419.6 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.4149, allocations: 7.938 kB / 419.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.4149, allocations: 0 / 419.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007976/0.4157, allocations: 259.2 kB / 419.8 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.416, allocations: 63.89 kB / 419.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007305/0.4233, allocations: 7.493 MB / 427.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.4238, allocations: 16.03 kB / 427.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.699e-05/0.4239, allocations: 15.98 kB / 427.4 MB, free: 13.28 MB / 350.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.000313/0.4242, allocations: 178.9 kB / 427.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.4243, allocations: 55.34 kB / 427.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.4244, allocations: 65.02 kB / 427.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4244, allocations: 4 kB / 427.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/0.4244, allocations: 7.938 kB / 427.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4245, allocations: 3.984 kB / 427.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.4267, allocations: 1.341 MB / 429.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4267, allocations: 3.938 kB / 429.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002813/0.427, allocations: 55.89 kB / 429.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006914/0.4277, allocations: 255.2 kB / 429.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.4277, allocations: 12 kB / 429.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006828/0.4345, allocations: 7.516 MB / 436.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4346, allocations: 0 / 436.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.4365, allocations: 1.03 MB / 437.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000257/0.4368, allocations: 156.4 kB / 438.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.082e-05/0.4368, allocations: 12 kB / 438.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.4371, allocations: 16.45 kB / 438.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.4373, allocations: 56.48 kB / 438.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.811e-05/0.4373, allocations: 19.94 kB / 438.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003296/0.4377, allocations: 259.2 kB / 438.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4377, allocations: 0 / 438.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001052/0.4387, allocations: 175.9 kB / 438.6 MB, free: 1.398 MB / 350.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.0003112/0.4391, allocations: 108 kB / 438.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002049/0.4411, allocations: 1.041 MB / 439.8 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.363e-06/0.4411, allocations: 8 kB / 439.8 MB, free: 184 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001291/0.4424, allocations: 0.8413 MB / 440.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005463/0.443, allocations: 97.44 kB / 440.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.4453, allocations: 1.251 MB / 442 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.4457, allocations: 0.8792 MB / 442.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001647/0.4459, allocations: 48.55 kB / 442.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.865e-05/0.446, allocations: 27.44 kB / 442.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.446, allocations: 4 kB / 442.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of Templates: time 0.01544/0.4614, allocations: 9.117 MB / 452 MB, free: 3.883 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/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