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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001263/0.001263, allocations: 193.2 kB / 16.25 MB, free: 6.633 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.24/1.24, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.124/2.124, allocations: 390.3 MB / 0.6644 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 63.91 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6437/0.6451, allocations: 140.4 MB / 0.9492 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003046/0.6482, allocations: 1.822 MB / 0.951 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008465/0.6491, allocations: 0.6534 MB / 0.9517 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.914e-05/0.6492, allocations: 1.594 kB / 0.9517 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.671e-05/0.6492, allocations: 7.922 kB / 0.9517 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.989e-05/0.6493, allocations: 10.38 kB / 0.9517 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.6497, allocations: 153.5 kB / 0.9518 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.6499, allocations: 130.7 kB / 0.9519 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.65, allocations: 51.31 kB / 0.952 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.6501, allocations: 56.27 kB / 0.952 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.21e-05/0.6502, allocations: 52.31 kB / 0.9521 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.6502, allocations: 11.19 kB / 0.9521 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.6503, allocations: 42.97 kB / 0.9521 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.061e-05/0.6504, allocations: 34.5 kB / 0.9522 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.581e-05/0.6504, allocations: 52.75 kB / 0.9522 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.6506, allocations: 146.4 kB / 0.9524 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.6506, allocations: 0 / 0.9524 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6507, allocations: 1.5 kB / 0.9524 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.6507, allocations: 0 / 0.9524 GB, free: 6.719 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005706/0.6512, allocations: 441.8 kB / 0.9528 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.6513, allocations: 10.09 kB / 0.9528 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.972e-05/0.6513, allocations: 45.91 kB / 0.9528 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008002/0.6521, allocations: 112.4 kB / 0.953 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.974e-05/0.6522, allocations: 188.3 kB / 0.9531 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.611e-05/0.6523, allocations: 58.53 kB / 0.9532 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.6523, allocations: 10.28 kB / 0.9532 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004353/0.6528, allocations: 178.2 kB / 0.9534 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.6528, allocations: 0 / 0.9534 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.6528, allocations: 2.156 kB / 0.9534 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.6528, allocations: 0.9688 kB / 0.9534 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005298/0.6534, allocations: 164.7 kB / 0.9535 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009026/0.6543, allocations: 486.2 kB / 0.954 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008771/0.6552, allocations: 219.5 kB / 0.9542 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.6554, allocations: 83.84 kB / 0.9543 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.6554, allocations: 1.5 kB / 0.9543 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.471e-05/0.6555, allocations: 39.81 kB / 0.9543 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.6555, allocations: 3.938 kB / 0.9543 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0008837/0.6564, allocations: 264.2 kB / 0.9546 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.035e-05/0.6564, allocations: 51.41 kB / 0.9546 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.551e-05/0.6565, allocations: 135.2 kB / 0.9548 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.6565, allocations: 25.7 kB / 0.9548 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.941e-05/0.6565, allocations: 114.4 kB / 0.9549 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.6566, allocations: 25.22 kB / 0.9549 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.057e-05/0.6566, allocations: 24.89 kB / 0.9549 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.473e-05/0.6567, allocations: 320.8 kB / 0.9552 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.657, allocations: 72.75 kB / 0.9553 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002621/0.6572, allocations: 90.53 kB / 0.9554 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004978/0.6577, allocations: 164.5 kB / 0.9556 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.6577, allocations: 0 / 0.9556 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005766/0.6583, allocations: 205.8 kB / 0.9557 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.6583, allocations: 7.625 kB / 0.9558 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.6584, allocations: 9.078 kB / 0.9558 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.6584, allocations: 1.125 kB / 0.9558 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/0.6586, allocations: 41.98 kB / 0.9558 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.6586, allocations: 1.219 kB / 0.9558 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.6588, allocations: 25.25 kB / 0.9558 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.6588, allocations: 2.75 kB / 0.9558 GB, free: 3.848 MB / 0.7169 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 7.345e-05/0.6589, allocations: 122.1 kB / 0.9559 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.659, allocations: 7.719 kB / 0.956 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006202/0.6596, allocations: 211.5 kB / 0.9562 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.6596, allocations: 1.125 kB / 0.9562 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.6596, allocations: 3.938 kB / 0.9562 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.6596, allocations: 1.406 kB / 0.9562 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001794/0.6598, allocations: 238.2 kB / 0.9564 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.6598, allocations: 8 kB / 0.9564 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002075/0.66, allocations: 31.42 kB / 0.9564 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.66, allocations: 1.375 kB / 0.9564 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.6601, allocations: 7.938 kB / 0.9564 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.6601, allocations: 1.312 kB / 0.9564 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.6601, allocations: 0 / 0.9564 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005568/0.6606, allocations: 282.7 kB / 0.9567 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.086e-05/0.6607, allocations: 83.86 kB / 0.9568 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.6607, allocations: 5.344 kB / 0.9568 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002741/0.661, allocations: 32.55 kB / 0.9568 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.661, allocations: 9.391 kB / 0.9568 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.661, allocations: 16.11 kB / 0.9568 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.329e-05/0.6611, allocations: 104.4 kB / 0.9569 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6611, allocations: 0 / 0.9569 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002499/0.6614, allocations: 23.47 kB / 0.957 GB, free: 2.863 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 (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.0007231/0.6621, allocations: 0.8192 MB / 0.9578 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005581/0.6626, allocations: 168.5 kB / 0.9579 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6627, allocations: 1.375 kB / 0.9579 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002588/0.6629, allocations: 82.48 kB / 0.958 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.6633, allocations: 10.09 kB / 0.958 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.6656, allocations: 1.852 MB / 0.9598 GB, free: 412 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001587/0.6657, allocations: 0.6996 MB / 0.9605 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.519e-05/0.6659, allocations: 17.52 kB / 0.9605 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.49e-05/0.6659, allocations: 31.73 kB / 0.9606 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.6659, allocations: 0.9062 kB / 0.9606 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01117/0.6771, allocations: 2.602 MB / 0.9631 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.6773, allocations: 192.7 kB / 0.9633 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.578/2.256, allocations: 3.938 kB / 0.9633 GB, free: 14.09 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > 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