Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.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.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009123/0.0009123, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.000931/0.0009311, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.421/2.421, allocations: 390.3 MB / 0.6653 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004226/0.0004226, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9146/0.915, allocations: 142.3 MB / 0.9535 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.001374/0.9164, allocations: 1.162 MB / 0.9546 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000698/0.9171, allocations: 0.5258 MB / 0.9552 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.862e-05/0.9172, allocations: 0 / 0.9552 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.747e-05/0.9172, allocations: 5.438 kB / 0.9552 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.191e-05/0.9172, allocations: 3.938 kB / 0.9552 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.9175, allocations: 40.86 kB / 0.9552 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.184e-05/0.9175, allocations: 17.38 kB / 0.9552 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.877e-05/0.9176, allocations: 11.02 kB / 0.9552 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.647e-05/0.9177, allocations: 8.719 kB / 0.9552 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.896e-05/0.9178, allocations: 12.58 kB / 0.9553 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.9178, allocations: 1.25 kB / 0.9553 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-05/0.9179, allocations: 46.02 kB / 0.9553 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.171e-05/0.9179, allocations: 11.92 kB / 0.9553 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.918, allocations: 27.95 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.9181, allocations: 39.91 kB / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.9181, allocations: 0 / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.774e-06/0.9181, allocations: 5.344 kB / 0.9554 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.9181, allocations: 0 / 0.9554 GB, free: 6.66 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003479/0.9184, allocations: 349.1 kB / 0.9557 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.9185, allocations: 8.75 kB / 0.9557 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.2e-05/0.9185, allocations: 9.328 kB / 0.9557 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.776e-05/0.9186, allocations: 169.7 kB / 0.9559 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.9186, allocations: 0.5938 kB / 0.9559 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.9186, allocations: 1.031 kB / 0.9559 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.9188, allocations: 51.56 kB / 0.9559 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.9188, allocations: 0 / 0.9559 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.9188, allocations: 1.156 kB / 0.9559 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.9188, allocations: 0 / 0.9559 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.68e-05/0.9189, allocations: 27.06 kB / 0.956 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003228/0.9193, allocations: 255.1 kB / 0.9562 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.004e-05/0.9194, allocations: 38.14 kB / 0.9562 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007677/0.9201, allocations: 0.4911 MB / 0.9567 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.9202, allocations: 31.72 kB / 0.9568 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.283e-06/0.9202, allocations: 0 / 0.9568 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002612/0.9204, allocations: 84 kB / 0.9568 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.01e-05/0.9205, allocations: 52.44 kB / 0.9569 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.303e-05/0.9206, allocations: 115.7 kB / 0.957 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.9206, allocations: 25.7 kB / 0.957 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.373e-05/0.9206, allocations: 86.45 kB / 0.9571 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.61e-05/0.9206, allocations: 8.031 kB / 0.9571 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-06/0.9207, allocations: 1.25 kB / 0.9571 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.892e-05/0.9207, allocations: 319.9 kB / 0.9574 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.213e-05/0.9208, allocations: 11.12 kB / 0.9574 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.458e-05/0.9208, allocations: 15.89 kB / 0.9574 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.318e-05/0.9208, allocations: 7.375 kB / 0.9575 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9209, allocations: 4.062 kB / 0.9575 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001089/0.921, allocations: 58.83 kB / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.921, allocations: 7 kB / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.921, allocations: 0 / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.921, allocations: 0 / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.966e-05/0.9211, allocations: 5.531 kB / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.9211, allocations: 3.953 kB / 0.9575 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.645e-05/0.9212, allocations: 15.7 kB / 0.9575 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.9212, allocations: 0 / 0.9575 GB, free: 4.387 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.9e-05/0.9213, allocations: 112.9 kB / 0.9576 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/0.9213, allocations: 5.781 kB / 0.9577 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.9215, allocations: 68.23 kB / 0.9577 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.9215, allocations: 2.625 kB / 0.9577 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.9215, allocations: 4.031 kB / 0.9577 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.9215, allocations: 3.953 kB / 0.9577 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.9216, allocations: 158.9 kB / 0.9579 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.9216, allocations: 0 / 0.9579 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.983e-05/0.9217, allocations: 5.156 kB / 0.9579 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.9217, allocations: 1.344 kB / 0.9579 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.9217, allocations: 0 / 0.9579 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.9217, allocations: 1.344 kB / 0.9579 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.9217, allocations: 0 / 0.9579 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.9219, allocations: 164.6 kB / 0.958 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.268e-05/0.9219, allocations: 82.11 kB / 0.9581 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.9219, allocations: 1.156 kB / 0.9581 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.841e-05/0.922, allocations: 2.281 kB / 0.9581 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/0.922, allocations: 5.047 kB / 0.9581 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.9221, allocations: 4.781 kB / 0.9581 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.346e-05/0.9221, allocations: 89.28 kB / 0.9582 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9221, allocations: 1 kB / 0.9582 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002345/0.9223, allocations: 20.36 kB / 0.9582 GB, free: 3.648 MB / 0.7169 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 (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001792/0.9225, allocations: 114.7 kB / 0.9584 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001344/0.9227, allocations: 26.02 kB / 0.9584 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.9227, allocations: 1.281 kB / 0.9584 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.827e-05/0.9227, allocations: 25.33 kB / 0.9584 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.9229, allocations: 2.906 kB / 0.9584 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002859/0.9232, allocations: 128.8 kB / 0.9585 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.9233, allocations: 0.6833 MB / 0.9592 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.341e-05/0.9234, allocations: 10.22 kB / 0.9592 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.678e-05/0.9234, allocations: 8.562 kB / 0.9592 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.9234, allocations: 0 / 0.9592 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of Templates: time 0.002728/0.9261, allocations: 0.6116 MB / 0.9598 GB, free: 2.363 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches