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.000909/0.000909, allocations: 92.58 kB / 17.31 MB, free: 6.535 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.0009607/0.0009607, allocations: 176.5 kB / 18.21 MB, free: 5.684 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.268/1.268, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002236, allocations: 7.938 kB / 302.1 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07424/0.07448, allocations: 50.41 MB / 352.5 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.002278/0.07679, allocations: 2.195 MB / 354.7 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008956/0.0777, allocations: 0.6468 MB / 355.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.18e-05/0.0778, allocations: 4 kB / 355.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.906e-05/0.07791, allocations: 23.78 kB / 355.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001138/0.07803, allocations: 63.45 kB / 355.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.07826, allocations: 83.86 kB / 355.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.0785, allocations: 254.8 kB / 355.7 MB, free: 464 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.07866, allocations: 72.77 kB / 355.8 MB, free: 384 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.07879, allocations: 91.59 kB / 355.9 MB, free: 292 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.07893, allocations: 107.5 kB / 356 MB, free: 184 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.07897, allocations: 19.94 kB / 356 MB, free: 164 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.744e-05/0.07904, allocations: 24 kB / 356.1 MB, free: 140 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.848e-05/0.07909, allocations: 43.83 kB / 356.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.07921, allocations: 133 kB / 356.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001871/0.0794, allocations: 203.7 kB / 356.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.07941, allocations: 0 / 356.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.07942, allocations: 0 / 356.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.07943, allocations: 0 / 356.4 MB, free: 15.76 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006554/0.08009, allocations: 0.499 MB / 356.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.808e-05/0.08013, allocations: 8.031 kB / 356.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.344e-05/0.08018, allocations: 24.66 kB / 357 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.08041, allocations: 232 kB / 357.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.08044, allocations: 16.81 kB / 357.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.08048, allocations: 20.38 kB / 357.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.08084, allocations: 203.6 kB / 357.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.08086, allocations: 0 / 357.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.08089, allocations: 4 kB / 357.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.0809, allocations: 11.94 kB / 357.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003116/0.08122, allocations: 153.7 kB / 357.6 MB, free: 14.51 MB / 302.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.001219/0.08245, allocations: 0.9336 MB / 358.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.08275, allocations: 154.5 kB / 358.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.08296, allocations: 104.8 kB / 358.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.08299, allocations: 4 kB / 358.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.08302, allocations: 30.56 kB / 358.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.08302, allocations: 0 / 358.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001258/0.08429, allocations: 435.3 kB / 359.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.497e-05/0.08432, allocations: 51.41 kB / 359.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.08448, allocations: 179.2 kB / 359.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.08451, allocations: 29.7 kB / 359.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.239e-05/0.0846, allocations: 148.1 kB / 359.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.853e-05/0.08465, allocations: 63.09 kB / 359.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.358e-05/0.08469, allocations: 21.66 kB / 359.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.363e-05/0.08479, allocations: 334.8 kB / 360 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.08492, allocations: 51.92 kB / 360.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.08505, allocations: 72.5 kB / 360.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.08531, allocations: 144.3 kB / 360.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.08532, allocations: 0 / 360.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004072/0.08573, allocations: 222.2 kB / 360.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.08576, allocations: 7.938 kB / 360.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.08576, allocations: 0 / 360.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001387/0.08716, allocations: 232.5 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.08732, allocations: 31.98 kB / 360.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004165/0.08774, allocations: 0.6147 MB / 361.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.08788, allocations: 19.83 kB / 361.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.08791, allocations: 8 kB / 361.4 MB, free: 10.41 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: 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.0001046/0.08802, allocations: 133.8 kB / 361.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.238e-05/0.08807, allocations: 15.81 kB / 361.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004511/0.08852, allocations: 234.9 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.08854, allocations: 4 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.08855, allocations: 0 / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.08856, allocations: 0 / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008453/0.08941, allocations: 0.6001 MB / 362.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.08942, allocations: 0 / 362.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001514/0.08958, allocations: 23.98 kB / 362.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.09075, allocations: 220.6 kB / 362.6 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.09077, allocations: 0 / 362.6 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004146/0.0912, allocations: 0.6265 MB / 363.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.09121, allocations: 0 / 363.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008097/0.09203, allocations: 436.7 kB / 363.7 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.09209, allocations: 108.8 kB / 363.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.09212, allocations: 0 / 363.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001586/0.09229, allocations: 12.06 kB / 363.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.4e-05/0.09233, allocations: 11.98 kB / 363.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.09235, allocations: 11.98 kB / 363.8 MB, free: 7.855 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.272e-05/0.09245, allocations: 131.2 kB / 364 MB, free: 7.727 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09246, allocations: 0 / 364 MB, free: 7.727 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.09276, allocations: 55.84 kB / 364 MB, free: 7.672 MB / 302.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.0001268/0.09289, allocations: 107.3 kB / 364.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003649/0.09326, allocations: 163.8 kB / 364.3 MB, free: 7.395 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.09328, allocations: 0 / 364.3 MB, free: 7.395 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001926/0.09348, allocations: 87.89 kB / 364.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.09383, allocations: 26.81 kB / 364.4 MB, free: 7.285 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009093/0.09475, allocations: 0.7346 MB / 365.1 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.095, allocations: 0.7402 MB / 365.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/0.09505, allocations: 15.44 kB / 365.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.09505, allocations: 0 / 365.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of Templates: time 0.004631/0.09969, allocations: 3.069 MB / 369 MB, free: 2.668 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","/var/lib/jenkins1/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