Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 100.1 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.393e-05/2.403e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3348, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.4592, allocations: 77.3 MB / 439.6 MB, free: 9.023 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.4595, allocations: 67.97 kB / 439.7 MB, free: 8.957 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01805/0.4776, allocations: 3.928 MB / 443.6 MB, free: 5.047 MB / 331.1 MB Notification: Performance of FrontEnd: time 5.43e-06/0.4777, allocations: 4 kB / 443.6 MB, free: 5.043 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.4777, allocations: 4 kB / 443.6 MB, free: 5.039 MB / 331.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.000977/0.4787, allocations: 485.1 kB / 444.1 MB, free: 4.523 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.4787, allocations: 12.03 kB / 444.1 MB, free: 4.512 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.685e-05/0.4788, allocations: 23.72 kB / 444.1 MB, free: 4.488 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003647/0.4792, allocations: 231.4 kB / 444.4 MB, free: 4.219 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.4793, allocations: 13.16 kB / 444.4 MB, free: 4.207 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.052e-05/0.4793, allocations: 12 kB / 444.4 MB, free: 4.195 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004123/0.4797, allocations: 120.9 kB / 444.5 MB, free: 4.078 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004365/0.4802, allocations: 154.4 kB / 444.7 MB, free: 3.918 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.4802, allocations: 0 / 444.7 MB, free: 3.918 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.4803, allocations: 0 / 444.7 MB, free: 3.918 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.4803, allocations: 5.031 kB / 444.7 MB, free: 3.914 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.4823, allocations: 0.8228 MB / 445.5 MB, free: 3.016 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003995/0.4828, allocations: 132.1 kB / 445.6 MB, free: 2.879 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002546/0.483, allocations: 84.94 kB / 445.7 MB, free: 2.793 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.668e-05/0.4831, allocations: 4 kB / 445.7 MB, free: 2.789 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.4831, allocations: 38 kB / 445.7 MB, free: 2.746 MB / 331.1 MB Notification: Performance of pre-optimization done (n=17): time 2.875e-06/0.4831, allocations: 4 kB / 445.7 MB, free: 2.742 MB / 331.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009471/0.4841, allocations: 198.3 kB / 445.9 MB, free: 2.543 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.4842, allocations: 51.41 kB / 446 MB, free: 2.48 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.4844, allocations: 150 kB / 446.1 MB, free: 2.328 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.4844, allocations: 25.7 kB / 446.2 MB, free: 2.297 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.4846, allocations: 210.4 kB / 446.4 MB, free: 2.09 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.835e-05/0.4847, allocations: 63.11 kB / 446.4 MB, free: 2.027 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.141e-05/0.4847, allocations: 0 / 446.4 MB, free: 2.027 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.4848, allocations: 322.8 kB / 446.7 MB, free: 1.703 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.485, allocations: 40.31 kB / 446.8 MB, free: 1.664 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.4851, allocations: 62.22 kB / 446.8 MB, free: 1.598 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003216/0.4855, allocations: 67.91 kB / 446.9 MB, free: 1.531 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.4855, allocations: 4 kB / 446.9 MB, free: 1.527 MB / 331.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000711/0.4862, allocations: 190.4 kB / 447.1 MB, free: 1.332 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.4863, allocations: 8 kB / 447.1 MB, free: 1.324 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.4863, allocations: 3.469 kB / 447.1 MB, free: 1.324 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008462/0.4871, allocations: 96.8 kB / 447.2 MB, free: 1.227 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002794/0.4874, allocations: 35.97 kB / 447.2 MB, free: 1.191 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000879/0.4883, allocations: 0.6361 MB / 447.9 MB, free: 0.5312 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002287/0.4886, allocations: 15.94 kB / 447.9 MB, free: 0.5156 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.4886, allocations: 4 kB / 447.9 MB, free: 0.5117 MB / 331.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.4888, allocations: 108.3 kB / 448 MB, free: 412 kB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.17e-05/0.4888, allocations: 19.8 kB / 448 MB, free: 392 kB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007408/0.4896, allocations: 211.2 kB / 448.2 MB, free: 180 kB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.4896, allocations: 0 / 448.2 MB, free: 180 kB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4896, allocations: 4 kB / 448.2 MB, free: 176 kB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.4896, allocations: 0 / 448.2 MB, free: 176 kB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.491, allocations: 0.5355 MB / 448.8 MB, free: 15.59 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4911, allocations: 0 / 448.8 MB, free: 15.59 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002831/0.4913, allocations: 31.98 kB / 448.8 MB, free: 15.55 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007803/0.4921, allocations: 115 kB / 448.9 MB, free: 15.44 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.4922, allocations: 4 kB / 448.9 MB, free: 15.44 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008623/0.4931, allocations: 0.642 MB / 449.6 MB, free: 14.77 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.4931, allocations: 0 / 449.6 MB, free: 14.77 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009806/0.4941, allocations: 387.1 kB / 449.9 MB, free: 14.36 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.526e-05/0.4942, allocations: 96.84 kB / 450 MB, free: 14.25 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.4943, allocations: 0 / 450 MB, free: 14.25 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.4945, allocations: 8 kB / 450 MB, free: 14.24 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.4946, allocations: 7.984 kB / 450 MB, free: 14.23 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.422e-05/0.4946, allocations: 16.81 kB / 450.1 MB, free: 14.22 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001414/0.4948, allocations: 115.3 kB / 450.2 MB, free: 14.11 MB / 347.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4948, allocations: 3.938 kB / 450.2 MB, free: 14.1 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004615/0.4953, allocations: 63.84 kB / 450.2 MB, free: 14.04 MB / 347.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002364/0.4955, allocations: 107.8 kB / 450.3 MB, free: 13.92 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0006377/0.4962, allocations: 128.3 kB / 450.5 MB, free: 13.8 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.4962, allocations: 0 / 450.5 MB, free: 13.8 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004139/0.4966, allocations: 76.52 kB / 450.5 MB, free: 13.72 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006429/0.4973, allocations: 21.11 kB / 450.6 MB, free: 13.7 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001801/0.4991, allocations: 401 kB / 451 MB, free: 13.29 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006426/0.4998, allocations: 0.7399 MB / 451.7 MB, free: 12.52 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.5, allocations: 11.44 kB / 451.7 MB, free: 12.52 MB / 347.1 MB Notification: Performance of SimCode: time 1.343e-06/0.5, allocations: 0 / 451.7 MB, free: 12.52 MB / 347.1 MB Notification: Performance of Templates: time 0.01083/0.5109, allocations: 2.946 MB / 454.7 MB, free: 9.594 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches