Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001163, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001258/0.001258, allocations: 196 kB / 18 MB, free: 5.051 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.538/1.538, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3575, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004364/0.362, allocations: 2.53 MB / 403.3 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.3635, allocations: 0.6505 MB / 403.9 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.3637, allocations: 7.938 kB / 403.9 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.3639, allocations: 35.64 kB / 403.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.3641, allocations: 71.34 kB / 404 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004642/0.3646, allocations: 79.83 kB / 404.1 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004084/0.365, allocations: 282.7 kB / 404.4 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.3653, allocations: 88.34 kB / 404.5 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.3655, allocations: 107.6 kB / 404.6 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.3657, allocations: 115.5 kB / 404.7 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/0.3657, allocations: 24 kB / 404.7 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001253/0.3659, allocations: 43.97 kB / 404.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.675e-05/0.3659, allocations: 43.84 kB / 404.8 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.3661, allocations: 123.4 kB / 404.9 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004491/0.3665, allocations: 282.7 kB / 405.2 MB, free: 4.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.3665, allocations: 0 / 405.2 MB, free: 4.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3666, allocations: 0 / 405.2 MB, free: 4.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.3666, allocations: 0 / 405.2 MB, free: 4.418 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001009/0.3676, allocations: 0.5454 MB / 405.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.3677, allocations: 15.97 kB / 405.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.755e-05/0.3677, allocations: 24.8 kB / 405.8 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004749/0.3682, allocations: 236 kB / 406 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.3683, allocations: 12.81 kB / 406 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.253e-05/0.3683, allocations: 24.38 kB / 406 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.3688, allocations: 195.6 kB / 406.2 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.3688, allocations: 0 / 406.2 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.3688, allocations: 12 kB / 406.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.3689, allocations: 4 kB / 406.2 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003422/0.3692, allocations: 153.6 kB / 406.4 MB, free: 3.113 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001511/0.3707, allocations: 0.9297 MB / 407.3 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/0.3711, allocations: 154.6 kB / 407.5 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.3713, allocations: 96.83 kB / 407.6 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.3714, allocations: 7.938 kB / 407.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.3714, allocations: 34.56 kB / 407.6 MB, free: 1.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.222e-06/0.3714, allocations: 0 / 407.6 MB, free: 1.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.001318/0.3727, allocations: 423.4 kB / 408 MB, free: 1.324 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.3728, allocations: 51.41 kB / 408.1 MB, free: 1.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.373, allocations: 187.4 kB / 408.3 MB, free: 1.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.373, allocations: 25.7 kB / 408.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.3731, allocations: 148.3 kB / 408.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.912e-05/0.3732, allocations: 63.44 kB / 408.5 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.218e-05/0.3733, allocations: 37.7 kB / 408.5 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3734, allocations: 330.8 kB / 408.8 MB, free: 460 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.3735, allocations: 47.97 kB / 408.9 MB, free: 412 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.3737, allocations: 75.38 kB / 409 MB, free: 332 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/0.374, allocations: 129.6 kB / 409.1 MB, free: 196 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.374, allocations: 0 / 409.1 MB, free: 196 kB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000414/0.3744, allocations: 221.2 kB / 409.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.3744, allocations: 4 kB / 409.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.3744, allocations: 32 / 409.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.3758, allocations: 220.5 kB / 409.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.3759, allocations: 35.91 kB / 409.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005394/0.3765, allocations: 0.6148 MB / 410.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.3766, allocations: 11.95 kB / 410.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.3766, allocations: 4 kB / 410.2 MB, free: 15.05 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.3767, allocations: 137.8 kB / 410.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.293e-05/0.3768, allocations: 15.91 kB / 410.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004859/0.3773, allocations: 232.2 kB / 410.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.3773, allocations: 64 / 410.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3773, allocations: 4 kB / 410.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.3773, allocations: 3.984 kB / 410.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009119/0.3782, allocations: 0.596 MB / 411.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3783, allocations: 0 / 411.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.3784, allocations: 35.86 kB / 411.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000975/0.3794, allocations: 208.6 kB / 411.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.3794, allocations: 0 / 411.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004638/0.3799, allocations: 0.6226 MB / 412 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3799, allocations: 0 / 412 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007614/0.3807, allocations: 421 kB / 412.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.077e-05/0.3808, allocations: 108.9 kB / 412.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.3808, allocations: 4 kB / 412.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.3809, allocations: 12 kB / 412.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.381, allocations: 15.98 kB / 412.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.381, allocations: 7.984 kB / 412.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001091/0.3811, allocations: 128.3 kB / 412.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3811, allocations: 0 / 412.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.3815, allocations: 55.89 kB / 412.8 MB, free: 12.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001946/0.3817, allocations: 107.2 kB / 412.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004311/0.3821, allocations: 150.4 kB / 413 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.3821, allocations: 4 kB / 413 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.3823, allocations: 91.81 kB / 413.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.3827, allocations: 31.92 kB / 413.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.3838, allocations: 0.5554 MB / 413.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.3842, allocations: 0.74 MB / 414.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.511e-05/0.3843, allocations: 13.55 kB / 414.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.534e-05/0.3843, allocations: 15.44 kB / 414.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3843, allocations: 96 / 414.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of Templates: time 0.006914/0.3912, allocations: 2.569 MB / 417 MB, free: 8.008 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches