Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|heatCapacitor.T|onOffController.y",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature") translateModel(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|heatCapacitor.T|onOffController.y",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 106 kB / 17.06 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001593/0.001594, allocations: 198.9 kB / 18 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 47.86 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2284, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.003239/0.2316, allocations: 2.508 MB / 403.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009353/0.2326, allocations: 0.6311 MB / 403.8 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.2327, allocations: 4 kB / 403.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.2329, allocations: 35.64 kB / 403.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.233, allocations: 71.34 kB / 404 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000239/0.2332, allocations: 71.84 kB / 404 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.2335, allocations: 262.8 kB / 404.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.2337, allocations: 103.4 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.2338, allocations: 99.64 kB / 404.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.234, allocations: 111.5 kB / 404.6 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.379e-05/0.234, allocations: 20 kB / 404.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.9e-05/0.2341, allocations: 24 kB / 404.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.427e-05/0.2342, allocations: 51.83 kB / 404.7 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2343, allocations: 115.4 kB / 404.8 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.2346, allocations: 262.9 kB / 405 MB, free: 4.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2346, allocations: 4 kB / 405.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2346, allocations: 0 / 405.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.2346, allocations: 0 / 405.1 MB, free: 4.523 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.000882/0.2355, allocations: 0.5572 MB / 405.6 MB, free: 3.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.2356, allocations: 11.89 kB / 405.6 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.2357, allocations: 32.73 kB / 405.7 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.236, allocations: 228.4 kB / 405.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.236, allocations: 24.81 kB / 405.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.236, allocations: 16.38 kB / 405.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.2364, allocations: 242.1 kB / 406.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.2365, allocations: 0 / 406.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.2365, allocations: 4 kB / 406.2 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.2365, allocations: 8 kB / 406.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003734/0.2369, allocations: 153.7 kB / 406.3 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.238, allocations: 0.8207 MB / 407.1 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003621/0.2384, allocations: 162.6 kB / 407.3 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.2386, allocations: 76.83 kB / 407.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.2386, allocations: 0 / 407.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.2386, allocations: 34.5 kB / 407.4 MB, free: 1.984 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 9.72e-07/0.2387, allocations: 8 kB / 407.4 MB, free: 1.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008003/0.2395, allocations: 335.2 kB / 407.7 MB, free: 1.621 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.2395, allocations: 55.41 kB / 407.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.2397, allocations: 179.2 kB / 408 MB, free: 1.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.2397, allocations: 33.7 kB / 408 MB, free: 1.324 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/0.2398, allocations: 144.3 kB / 408.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.267e-05/0.2398, allocations: 63.58 kB / 408.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.536e-05/0.2399, allocations: 37.72 kB / 408.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.873e-05/0.24, allocations: 330.8 kB / 408.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.2401, allocations: 51.97 kB / 408.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.2403, allocations: 97.75 kB / 408.7 MB, free: 0.582 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.2406, allocations: 140.2 kB / 408.8 MB, free: 440 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2406, allocations: 0 / 408.8 MB, free: 440 kB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004264/0.241, allocations: 220.3 kB / 409.1 MB, free: 212 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.2411, allocations: 4 kB / 409.1 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2411, allocations: 0 / 409.1 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001759/0.2412, allocations: 40.95 kB / 409.1 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.2414, allocations: 39.86 kB / 409.1 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.2425, allocations: 1.465 MB / 410.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.2427, allocations: 39.8 kB / 410.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.2427, allocations: 8 kB / 410.7 MB, free: 14.46 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (onOffController.y,$PRE.onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.913e-05/0.2428, allocations: 129.8 kB / 410.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.2428, allocations: 27.89 kB / 410.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.016e-05/0.2429, allocations: 21.88 kB / 410.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2429, allocations: 0 / 410.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.2429, allocations: 4 kB / 410.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2429, allocations: 3.938 kB / 410.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006789/0.2436, allocations: 0.5179 MB / 411.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.2436, allocations: 4 kB / 411.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001351/0.2438, allocations: 27.98 kB / 411.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001041/0.2439, allocations: 32.83 kB / 411.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.2439, allocations: 4 kB / 411.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.2449, allocations: 1.461 MB / 412.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.2449, allocations: 4.078 kB / 412.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005771/0.2455, allocations: 360.1 kB / 413.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.9e-05/0.2456, allocations: 105 kB / 413.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/0.2456, allocations: 4 kB / 413.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/0.2458, allocations: 23.97 kB / 413.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.794e-05/0.2459, allocations: 15.97 kB / 413.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.2459, allocations: 8 kB / 413.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.919e-05/0.246, allocations: 124.4 kB / 413.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.246, allocations: 0 / 413.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002941/0.2463, allocations: 63.89 kB / 413.6 MB, free: 11.29 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001006/0.2464, allocations: 103.1 kB / 413.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004807/0.2469, allocations: 258.7 kB / 413.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2469, allocations: 4 kB / 413.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.2471, allocations: 194.6 kB / 414.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003007/0.2475, allocations: 39.91 kB / 414.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006828/0.2481, allocations: 461.9 kB / 414.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.2484, allocations: 0.7397 MB / 415.4 MB, free: 9.422 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.074e-05/0.2485, allocations: 17.55 kB / 415.4 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.612e-05/0.2486, allocations: 23.31 kB / 415.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2486, allocations: 0 / 415.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of Templates: time 0.005248/0.2538, allocations: 2.437 MB / 417.8 MB, free: 6.973 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/ControlledTemperature/ControlledTemperature.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches