Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009875/0.0009875, allocations: 199.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 226.5 MB / 245.3 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007322/0.0007322, allocations: 89.2 kB / 297.4 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002175/0.0002175, allocations: 8 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1816, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08325/0.2648, allocations: 80.37 MB / 489 MB, free: 11.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.2651, allocations: 75.95 kB / 489.1 MB, free: 11.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01056/0.2757, allocations: 4.173 MB / 493.3 MB, free: 6.949 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2757, allocations: 0 / 493.3 MB, free: 6.949 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.2757, allocations: 7.938 kB / 493.3 MB, free: 6.941 MB / 362.7 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.000601/0.2763, allocations: 0.4991 MB / 493.8 MB, free: 6.391 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2763, allocations: 8.031 kB / 493.8 MB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.2765, allocations: 36.64 kB / 493.8 MB, free: 6.348 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.2767, allocations: 239.9 kB / 494.1 MB, free: 6.074 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.2768, allocations: 28.81 kB / 494.1 MB, free: 6.047 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/0.2768, allocations: 16.38 kB / 494.1 MB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003246/0.2771, allocations: 187.8 kB / 494.3 MB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2772, allocations: 192 / 494.3 MB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.2772, allocations: 11.94 kB / 494.3 MB, free: 5.828 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2772, allocations: 4 kB / 494.3 MB, free: 5.824 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.2775, allocations: 157.6 kB / 494.5 MB, free: 5.672 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.2787, allocations: 0.8622 MB / 495.3 MB, free: 4.715 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002713/0.279, allocations: 150.6 kB / 495.5 MB, free: 4.559 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.2792, allocations: 96.77 kB / 495.6 MB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.2792, allocations: 11.98 kB / 495.6 MB, free: 4.449 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.2792, allocations: 34.86 kB / 495.6 MB, free: 4.406 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.202e-06/0.2792, allocations: 3.938 kB / 495.6 MB, free: 4.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.001155/0.2804, allocations: 429.7 kB / 496 MB, free: 3.957 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.672e-05/0.2804, allocations: 55.39 kB / 496.1 MB, free: 3.891 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.2806, allocations: 172 kB / 496.2 MB, free: 3.711 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.2806, allocations: 25.7 kB / 496.3 MB, free: 3.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.2807, allocations: 156 kB / 496.4 MB, free: 3.523 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.063e-05/0.2807, allocations: 59.09 kB / 496.5 MB, free: 3.465 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.2807, allocations: 8 kB / 496.5 MB, free: 3.457 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.499e-05/0.2808, allocations: 326.8 kB / 496.8 MB, free: 3.129 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.281, allocations: 47.97 kB / 496.9 MB, free: 3.082 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.2811, allocations: 80.44 kB / 496.9 MB, free: 3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.2813, allocations: 131.9 kB / 497.1 MB, free: 2.867 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2813, allocations: 0 / 497.1 MB, free: 2.867 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004156/0.2817, allocations: 226.2 kB / 497.3 MB, free: 2.637 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.2818, allocations: 4 kB / 497.3 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2818, allocations: 4.031 kB / 497.3 MB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.283, allocations: 224.5 kB / 497.5 MB, free: 2.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.2831, allocations: 35.97 kB / 497.5 MB, free: 2.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004246/0.2836, allocations: 0.6109 MB / 498.2 MB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.2837, allocations: 15.84 kB / 498.2 MB, free: 1.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.2837, allocations: 4 kB / 498.2 MB, free: 1.715 MB / 362.7 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 (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.0001048/0.2838, allocations: 137.7 kB / 498.3 MB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.829e-05/0.2839, allocations: 15.91 kB / 498.3 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004296/0.2843, allocations: 239.3 kB / 498.6 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2843, allocations: 0 / 498.6 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.2843, allocations: 0 / 498.6 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2843, allocations: 0 / 498.6 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008032/0.2852, allocations: 0.6053 MB / 499.2 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2852, allocations: 0 / 499.2 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.2853, allocations: 23.98 kB / 499.2 MB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/0.2864, allocations: 212.7 kB / 499.4 MB, free: 424 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.2864, allocations: 7.938 kB / 499.4 MB, free: 416 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00041/0.2868, allocations: 0.6225 MB / 0.4883 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2869, allocations: 3.938 kB / 0.4883 GB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005773/0.2874, allocations: 401.8 kB / 0.4887 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.878e-05/0.2875, allocations: 96.88 kB / 0.4888 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.2875, allocations: 8 kB / 0.4888 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.2877, allocations: 19.89 kB / 0.4888 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.56e-05/0.2877, allocations: 19.98 kB / 0.4888 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.2878, allocations: 7.938 kB / 0.4888 GB, free: 15.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.933e-05/0.2879, allocations: 131.5 kB / 0.489 GB, free: 15.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2879, allocations: 0 / 0.489 GB, free: 15.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002837/0.2882, allocations: 75.77 kB / 0.489 GB, free: 14.97 MB / 378.7 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 (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.0001455/0.2883, allocations: 99.25 kB / 0.4891 GB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003623/0.2887, allocations: 155.9 kB / 0.4893 GB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2887, allocations: 0 / 0.4893 GB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.2889, allocations: 79.97 kB / 0.4894 GB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.2892, allocations: 37.36 kB / 0.4894 GB, free: 14.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009103/0.2901, allocations: 0.7104 MB / 0.4901 GB, free: 13.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.2904, allocations: 0.7363 MB / 0.4908 GB, free: 13.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.878e-05/0.2904, allocations: 19.44 kB / 0.4908 GB, free: 13.08 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2904, allocations: 0 / 0.4908 GB, free: 13.08 MB / 378.7 MB Notification: Performance of Templates: time 0.004253/0.2947, allocations: 3.08 MB / 0.4938 GB, free: 10 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches