Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001042/0.001043, allocations: 183 kB / 17.91 MB, free: 3.855 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.173/1.173, allocations: 205.1 MB / 223.8 MB, free: 8.496 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.0008958/0.0008958, allocations: 104.7 kB / 271.2 MB, free: 8.457 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008139/0.000814, allocations: 39.95 kB / 327.2 MB, free: 356 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1862, allocations: 46.62 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003378/0.1896, allocations: 2.511 MB / 376.3 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.1907, allocations: 0.6863 MB / 377 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.1909, allocations: 3.438 kB / 377 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.191, allocations: 22.84 kB / 377 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.1911, allocations: 67.27 kB / 377.1 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.1913, allocations: 66.33 kB / 377.2 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002114/0.1915, allocations: 267.5 kB / 377.4 MB, free: 43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.1917, allocations: 74.14 kB / 377.5 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.1918, allocations: 95.55 kB / 377.6 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.192, allocations: 109.3 kB / 377.7 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.16e-05/0.192, allocations: 15.44 kB / 377.7 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.07e-05/0.1921, allocations: 29.77 kB / 377.7 MB, free: 42.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.197e-05/0.1921, allocations: 37.69 kB / 377.8 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.309e-05/0.1922, allocations: 127.2 kB / 377.9 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002385/0.1925, allocations: 264.6 kB / 378.2 MB, free: 42.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1925, allocations: 0 / 378.2 MB, free: 42.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1925, allocations: 1.125 kB / 378.2 MB, free: 42.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.1925, allocations: 4 kB / 378.2 MB, free: 42.52 MB / 298.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.0006645/0.1932, allocations: 0.5137 MB / 378.7 MB, free: 42.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.1932, allocations: 9.75 kB / 378.7 MB, free: 42.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.406e-05/0.1933, allocations: 25.72 kB / 378.7 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001807/0.1935, allocations: 239.5 kB / 379 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.1935, allocations: 20.56 kB / 379 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/0.1935, allocations: 17.94 kB / 379 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.1938, allocations: 196.5 kB / 379.2 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1939, allocations: 1 kB / 379.2 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.1939, allocations: 10.03 kB / 379.2 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.1939, allocations: 4.438 kB / 379.2 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/0.1942, allocations: 154.5 kB / 379.3 MB, free: 41.55 MB / 298.7 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.001017/0.1952, allocations: 0.9318 MB / 380.3 MB, free: 40.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.1955, allocations: 150.1 kB / 380.4 MB, free: 40.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.1956, allocations: 105.3 kB / 380.5 MB, free: 40.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.1957, allocations: 2.281 kB / 380.5 MB, free: 40.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.336e-05/0.1957, allocations: 35.72 kB / 380.6 MB, free: 40.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.262e-06/0.1957, allocations: 0 / 380.6 MB, free: 40.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.00108/0.1968, allocations: 417.6 kB / 381 MB, free: 40.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.178e-05/0.1968, allocations: 53.94 kB / 381 MB, free: 40.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.1969, allocations: 176.3 kB / 381.2 MB, free: 40.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.197, allocations: 27.11 kB / 381.2 MB, free: 39.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.304e-05/0.197, allocations: 142.5 kB / 381.4 MB, free: 39.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.962e-05/0.197, allocations: 61.62 kB / 381.4 MB, free: 39.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.216e-05/0.1971, allocations: 41.92 kB / 381.5 MB, free: 39.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.366e-05/0.1972, allocations: 333.9 kB / 381.8 MB, free: 39.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.1973, allocations: 46.98 kB / 381.8 MB, free: 39.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.1974, allocations: 72.81 kB / 381.9 MB, free: 39.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.1976, allocations: 132.4 kB / 382 MB, free: 39.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1976, allocations: 0 / 382 MB, free: 39.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003326/0.198, allocations: 216.9 kB / 382.3 MB, free: 39.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.198, allocations: 9.125 kB / 382.3 MB, free: 39.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.198, allocations: 4.031 kB / 382.3 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001166/0.1992, allocations: 215 kB / 382.5 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.1993, allocations: 28.27 kB / 382.5 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003159/0.1996, allocations: 0.6107 MB / 383.1 MB, free: 38.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.1997, allocations: 20.83 kB / 383.1 MB, free: 38.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.1998, allocations: 4.688 kB / 383.1 MB, free: 38.48 MB / 298.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 (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 7.747e-05/0.1998, allocations: 130.4 kB / 383.3 MB, free: 38.35 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.777e-05/0.1999, allocations: 15.66 kB / 383.3 MB, free: 38.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000373/0.2003, allocations: 234.4 kB / 383.5 MB, free: 38.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2003, allocations: 5 kB / 383.5 MB, free: 38.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2003, allocations: 1.156 kB / 383.5 MB, free: 38.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.2003, allocations: 0 / 383.5 MB, free: 38.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006771/0.201, allocations: 0.5987 MB / 384.1 MB, free: 37.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.201, allocations: 0 / 384.1 MB, free: 37.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001349/0.2011, allocations: 33.95 kB / 384.1 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009438/0.2021, allocations: 205.6 kB / 384.3 MB, free: 37.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.2021, allocations: 5.312 kB / 384.4 MB, free: 37.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002844/0.2024, allocations: 0.6189 MB / 385 MB, free: 36.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2024, allocations: 0 / 385 MB, free: 36.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/0.2131, allocations: 5.55 MB / 390.5 MB, free: 32.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.954e-05/0.2132, allocations: 92.89 kB / 390.6 MB, free: 31.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.2132, allocations: 4 kB / 390.6 MB, free: 31.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.2133, allocations: 12.11 kB / 390.6 MB, free: 31.94 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.837e-05/0.2134, allocations: 15.98 kB / 390.6 MB, free: 31.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.2134, allocations: 8 kB / 390.7 MB, free: 31.92 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.451e-05/0.2135, allocations: 127.5 kB / 390.8 MB, free: 31.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2135, allocations: 0 / 390.8 MB, free: 31.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003803/0.2139, allocations: 95.78 kB / 390.9 MB, free: 31.7 MB / 298.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 (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.0001103/0.214, allocations: 107.2 kB / 391 MB, free: 31.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003028/0.2143, allocations: 152.4 kB / 391.1 MB, free: 31.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2143, allocations: 0 / 391.1 MB, free: 31.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.2145, allocations: 95.67 kB / 391.2 MB, free: 31.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.2148, allocations: 24.61 kB / 391.2 MB, free: 31.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009327/0.2157, allocations: 0.9606 MB / 392.2 MB, free: 30.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.2159, allocations: 0.7446 MB / 392.9 MB, free: 29.55 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.809e-05/0.2159, allocations: 13.55 kB / 393 MB, free: 29.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.56e-05/0.2159, allocations: 15.44 kB / 393 MB, free: 29.52 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.216, allocations: 0 / 393 MB, free: 29.52 MB / 298.7 MB Notification: Performance of Templates: time 0.005656/0.2216, allocations: 4.04 MB / 397 MB, free: 25.5 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches