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.003209/0.003208, allocations: 180.9 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.733/3.733, allocations: 205.4 MB / 223.6 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00129/0.00129, allocations: 92.98 kB / 271.9 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004826/0.0004831, allocations: 8 kB / 328.1 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6166/0.6171, allocations: 47.58 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.186/0.8032, allocations: 78.09 MB / 453.8 MB, free: 2.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003457/0.8037, allocations: 75.95 kB / 453.9 MB, free: 2.445 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01553/0.8192, allocations: 3.978 MB / 457.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.807e-06/0.8193, allocations: 0 / 457.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.8193, allocations: 4 kB / 457.9 MB, free: 14.44 MB / 346.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.00107/0.8204, allocations: 499 kB / 458.4 MB, free: 13.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.934e-05/0.8205, allocations: 12.03 kB / 458.4 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.791e-05/0.8206, allocations: 32.59 kB / 458.4 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.821, allocations: 228.6 kB / 458.6 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.521e-05/0.8211, allocations: 16.81 kB / 458.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.8212, allocations: 24.28 kB / 458.7 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006569/0.8218, allocations: 187.8 kB / 458.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/0.8219, allocations: 7.938 kB / 458.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.88e-05/0.8219, allocations: 8 kB / 458.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.8219, allocations: 4 kB / 458.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004716/0.8224, allocations: 153.6 kB / 459 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.8244, allocations: 0.871 MB / 459.9 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005548/0.825, allocations: 150.6 kB / 460 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003539/0.8254, allocations: 104.8 kB / 460.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.018e-05/0.8255, allocations: 0 / 460.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.091e-05/0.8255, allocations: 30.56 kB / 460.2 MB, free: 11.94 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.785e-06/0.8255, allocations: 4 kB / 460.2 MB, free: 11.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.001908/0.8275, allocations: 424.3 kB / 460.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.8276, allocations: 59.34 kB / 460.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003696/0.828, allocations: 176.1 kB / 460.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.365e-05/0.828, allocations: 25.7 kB / 460.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.8283, allocations: 148.1 kB / 461 MB, free: 11.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.8284, allocations: 59.11 kB / 461 MB, free: 11.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.491e-05/0.8284, allocations: 4 kB / 461 MB, free: 11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003512/0.8288, allocations: 322.8 kB / 461.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.829, allocations: 63.91 kB / 461.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002355/0.8292, allocations: 73.81 kB / 461.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005638/0.8298, allocations: 122.7 kB / 461.6 MB, free: 10.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.8298, allocations: 0 / 461.6 MB, free: 10.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00111/0.831, allocations: 229.8 kB / 461.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.528e-05/0.8311, allocations: 4 kB / 461.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.8311, allocations: 7.922 kB / 461.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002493/0.8336, allocations: 228.6 kB / 462.1 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.834, allocations: 35.98 kB / 462.1 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001171/0.8352, allocations: 0.607 MB / 462.7 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.8354, allocations: 7.969 kB / 462.7 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.31e-05/0.8355, allocations: 19.97 kB / 462.7 MB, free: 9.254 MB / 346.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.0002737/0.8358, allocations: 133.7 kB / 462.9 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.325e-05/0.8358, allocations: 19.75 kB / 462.9 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007988/0.8367, allocations: 228.2 kB / 463.1 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.8367, allocations: 8 kB / 463.1 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.8367, allocations: 0 / 463.1 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.8367, allocations: 7.922 kB / 463.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.8383, allocations: 0.5957 MB / 463.7 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.8383, allocations: 0 / 463.7 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000219/0.8386, allocations: 32.02 kB / 463.8 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001482/0.8401, allocations: 216.5 kB / 464 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.712e-05/0.8401, allocations: 7.984 kB / 464 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008631/0.841, allocations: 0.6187 MB / 464.6 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.841, allocations: 0 / 464.6 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.8421, allocations: 404.8 kB / 465 MB, free: 6.871 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.8422, allocations: 96.89 kB / 465.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.439e-05/0.8423, allocations: 0 / 465.1 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.8425, allocations: 15.98 kB / 465.1 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.8427, allocations: 19.91 kB / 465.1 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.8427, allocations: 8 kB / 465.1 MB, free: 6.715 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002091/0.8429, allocations: 127.5 kB / 465.3 MB, free: 6.59 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.8429, allocations: 0 / 465.3 MB, free: 6.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006272/0.8436, allocations: 71.91 kB / 465.3 MB, free: 6.52 MB / 346.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.0002874/0.8439, allocations: 107.2 kB / 465.4 MB, free: 6.406 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007004/0.8446, allocations: 152.4 kB / 465.6 MB, free: 6.258 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.8446, allocations: 0 / 465.6 MB, free: 6.258 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003266/0.8449, allocations: 88.91 kB / 465.7 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006499/0.8456, allocations: 28.02 kB / 465.7 MB, free: 6.145 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.8474, allocations: 0.6969 MB / 466.4 MB, free: 5.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006098/0.8481, allocations: 0.7401 MB / 467.1 MB, free: 4.645 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.041e-05/0.8481, allocations: 15.44 kB / 467.1 MB, free: 4.629 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.8481, allocations: 3.938 kB / 467.2 MB, free: 4.625 MB / 346.7 MB Notification: Performance of Templates: time 0.009141/0.8573, allocations: 3.035 MB / 470.2 MB, free: 1.586 MB / 346.7 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