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.001557/0.001556, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.944/1.944, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001067/0.001067, allocations: 85.3 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005834/0.0005834, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3345, allocations: 47.57 MB / 374.5 MB, free: 45.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1306/0.4652, allocations: 78.05 MB / 452.6 MB, free: 2.715 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/0.4655, allocations: 71.95 kB / 452.7 MB, free: 2.645 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01745/0.483, allocations: 3.976 MB / 456.6 MB, free: 14.65 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4831, allocations: 4 kB / 456.6 MB, free: 14.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.4831, allocations: 4 kB / 456.6 MB, free: 14.64 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.0009804/0.4841, allocations: 498.9 kB / 457.1 MB, free: 14.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4842, allocations: 12.03 kB / 457.1 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.102e-05/0.4842, allocations: 23.72 kB / 457.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.4846, allocations: 227.4 kB / 457.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.4846, allocations: 20.39 kB / 457.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.4847, allocations: 16 kB / 457.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005403/0.4852, allocations: 189.3 kB / 457.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.4853, allocations: 7.906 kB / 457.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.4853, allocations: 4 kB / 457.6 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.4854, allocations: 4 kB / 457.6 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000522/0.4859, allocations: 169.5 kB / 457.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.4878, allocations: 0.8594 MB / 458.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004613/0.4883, allocations: 154.6 kB / 458.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.976e-05/0.4884, allocations: 4 kB / 458.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.4884, allocations: 42.44 kB / 458.8 MB, free: 12.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.875e-06/0.4884, allocations: 0 / 458.8 MB, free: 12.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.001979/0.4904, allocations: 428.8 kB / 459.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.4905, allocations: 51.41 kB / 459.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.4907, allocations: 155.3 kB / 459.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.4908, allocations: 33.7 kB / 459.5 MB, free: 11.53 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.4909, allocations: 210.5 kB / 459.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.544e-05/0.491, allocations: 55.11 kB / 459.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.804e-05/0.491, allocations: 4 kB / 459.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4911, allocations: 322.8 kB / 460.1 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.4914, allocations: 56.34 kB / 460.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.4916, allocations: 74.56 kB / 460.2 MB, free: 10.81 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002157/0.4918, allocations: 62.36 kB / 460.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4918, allocations: 0 / 460.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007138/0.4926, allocations: 222.3 kB / 460.5 MB, free: 10.53 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.4926, allocations: 4 kB / 460.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.4926, allocations: 0 / 460.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002152/0.4948, allocations: 224.6 kB / 460.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00027/0.4951, allocations: 39.97 kB / 460.7 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007077/0.4958, allocations: 0.6069 MB / 461.3 MB, free: 9.629 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.4961, allocations: 12.09 kB / 461.4 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.4961, allocations: 8 kB / 461.4 MB, free: 9.609 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.000187/0.4963, allocations: 133.7 kB / 461.5 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.792e-05/0.4964, allocations: 19.8 kB / 461.5 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000731/0.4971, allocations: 238.5 kB / 461.7 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.4971, allocations: 4 kB / 461.8 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4971, allocations: 0 / 461.8 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.4972, allocations: 3.953 kB / 461.8 MB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00047/0.4976, allocations: 289.5 kB / 462 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.4976, allocations: 0 / 462 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002779/0.4979, allocations: 23.98 kB / 462.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001925/0.4999, allocations: 212.6 kB / 462.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.724e-05/0.5, allocations: 4 kB / 462.3 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006768/0.5006, allocations: 0.6302 MB / 462.9 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5007, allocations: 3.938 kB / 462.9 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000906/0.5016, allocations: 384.6 kB / 463.3 MB, free: 7.574 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/0.5017, allocations: 96.84 kB / 463.4 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/0.5017, allocations: 8 kB / 463.4 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.502, allocations: 7.984 kB / 463.4 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.494e-05/0.5021, allocations: 15.98 kB / 463.4 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.5021, allocations: 4 kB / 463.4 MB, free: 7.426 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000155/0.5023, allocations: 131.6 kB / 463.5 MB, free: 7.297 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.5023, allocations: 3.938 kB / 463.5 MB, free: 7.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004416/0.5027, allocations: 67.75 kB / 463.6 MB, free: 7.227 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0002257/0.503, allocations: 115.2 kB / 463.7 MB, free: 7.105 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006753/0.5037, allocations: 160.3 kB / 463.9 MB, free: 6.949 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5037, allocations: 0 / 463.9 MB, free: 6.949 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003076/0.504, allocations: 85.17 kB / 464 MB, free: 6.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.5044, allocations: 20.33 kB / 464 MB, free: 6.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.5059, allocations: 0.7168 MB / 464.7 MB, free: 6.102 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.5063, allocations: 0.748 MB / 465.4 MB, free: 5.328 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.853e-05/0.5063, allocations: 15.44 kB / 465.5 MB, free: 5.312 MB / 346.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5064, allocations: 0 / 465.5 MB, free: 5.312 MB / 346.7 MB Notification: Performance of Templates: time 0.00721/0.5136, allocations: 2.979 MB / 468.4 MB, free: 2.328 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