Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) 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(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 107.7 kB / 16.37 MB, free: 6.477 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.001157/0.001157, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.197/1.197, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 1.995/1.995, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 71.8 kB / 0.814 GB, free: 32.75 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2263, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002674/0.229, allocations: 1.775 MB / 0.9529 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008905/0.2299, allocations: 0.6631 MB / 0.9535 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.611e-05/0.23, allocations: 0 / 0.9535 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.137e-05/0.23, allocations: 7.875 kB / 0.9535 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.774e-05/0.2301, allocations: 19.8 kB / 0.9535 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.2306, allocations: 171 kB / 0.9537 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.2307, allocations: 119.7 kB / 0.9538 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.2309, allocations: 60.92 kB / 0.9539 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.699e-05/0.231, allocations: 59.83 kB / 0.9539 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.109e-05/0.231, allocations: 51.75 kB / 0.954 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.2311, allocations: 12 kB / 0.954 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.123e-05/0.2312, allocations: 47.97 kB / 0.954 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.263e-05/0.2312, allocations: 27.91 kB / 0.9541 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.225e-05/0.2313, allocations: 55.66 kB / 0.9541 GB, free: 5 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.2315, allocations: 151.5 kB / 0.9542 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.2315, allocations: 3.938 kB / 0.9543 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.305e-06/0.2315, allocations: 0 / 0.9543 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.2315, allocations: 3.938 kB / 0.9543 GB, free: 4.844 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005062/0.232, allocations: 427.1 kB / 0.9547 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.806e-05/0.232, allocations: 12.03 kB / 0.9547 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007142/0.2327, allocations: 112.6 kB / 0.9548 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.2329, allocations: 188.1 kB / 0.955 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.35e-05/0.233, allocations: 63.95 kB / 0.955 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.233, allocations: 12.38 kB / 0.955 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004301/0.2334, allocations: 171.4 kB / 0.9552 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.2335, allocations: 3.938 kB / 0.9552 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.2335, allocations: 8 kB / 0.9552 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.2335, allocations: 0 / 0.9552 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000504/0.234, allocations: 163.8 kB / 0.9554 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009216/0.2349, allocations: 474 kB / 0.9558 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008545/0.2358, allocations: 214.3 kB / 0.956 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000257/0.2361, allocations: 80.91 kB / 0.9561 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.2361, allocations: 3.984 kB / 0.9561 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.2361, allocations: 38.56 kB / 0.9561 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.2361, allocations: 0 / 0.9561 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.000864/0.237, allocations: 265.3 kB / 0.9564 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.237, allocations: 55.39 kB / 0.9564 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.625e-05/0.2371, allocations: 139.5 kB / 0.9566 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.2372, allocations: 29.7 kB / 0.9566 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.735e-05/0.2372, allocations: 108.2 kB / 0.9567 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.2372, allocations: 27.64 kB / 0.9567 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.106e-05/0.2373, allocations: 21.7 kB / 0.9568 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.2374, allocations: 326.8 kB / 0.9571 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.2377, allocations: 67.92 kB / 0.9571 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000262/0.2379, allocations: 98.48 kB / 0.9572 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004851/0.2384, allocations: 170.6 kB / 0.9574 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.2384, allocations: 4 kB / 0.9574 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005656/0.239, allocations: 205.4 kB / 0.9576 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.239, allocations: 4 kB / 0.9576 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.239, allocations: 4 kB / 0.9576 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.239, allocations: 3.938 kB / 0.9576 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.2393, allocations: 31.95 kB / 0.9576 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.2393, allocations: 7.938 kB / 0.9576 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.2395, allocations: 27.86 kB / 0.9577 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.2395, allocations: 8 kB / 0.9577 GB, free: 1.086 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.107e-05/0.2396, allocations: 117.8 kB / 0.9578 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.976e-05/0.2396, allocations: 7.906 kB / 0.9578 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006036/0.2402, allocations: 206.2 kB / 0.958 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.2402, allocations: 0 / 0.958 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.2403, allocations: 0 / 0.958 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.2403, allocations: 4 kB / 0.958 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002278/0.2405, allocations: 238.2 kB / 0.9582 GB, free: 472 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2405, allocations: 3.938 kB / 0.9582 GB, free: 468 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.2407, allocations: 27.95 kB / 0.9583 GB, free: 440 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2407, allocations: 4 kB / 0.9583 GB, free: 436 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.2407, allocations: 15.92 kB / 0.9583 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2408, allocations: 0 / 0.9583 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2408, allocations: 0 / 0.9583 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005864/0.2413, allocations: 283.3 kB / 0.9585 GB, free: 120 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.62e-05/0.2414, allocations: 85.02 kB / 0.9586 GB, free: 16 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.323e-05/0.2414, allocations: 4.125 kB / 0.9586 GB, free: 12 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.2417, allocations: 31.95 kB / 0.9587 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.2418, allocations: 11.98 kB / 0.9587 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.2418, allocations: 4 kB / 0.9587 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 6.003e-05/0.2418, allocations: 105.3 kB / 0.9588 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.385e-06/0.2419, allocations: 7.938 kB / 0.9588 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002412/0.2421, allocations: 27.84 kB / 0.9588 GB, free: 15.83 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001175/0.2422, allocations: 107.2 kB / 0.9589 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005573/0.2428, allocations: 159.8 kB / 0.9591 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2428, allocations: 0 / 0.9591 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.2431, allocations: 83.86 kB / 0.9591 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.2433, allocations: 11.98 kB / 0.9592 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005898/0.2439, allocations: 251.6 kB / 0.9594 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.2442, allocations: 0.7002 MB / 0.9601 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.781e-05/0.2443, allocations: 19.97 kB / 0.9601 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.419e-05/0.2443, allocations: 11.44 kB / 0.9601 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of SimCode: time 3.4e-07/0.2444, allocations: 0 / 0.9601 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of Templates: time 0.003585/0.2479, allocations: 1.468 MB / 0.9615 GB, free: 12.97 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches