Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006795/0.006795, allocations: 100.9 kB / 15.87 MB, free: 5.867 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.001479/0.001479, allocations: 191.5 kB / 16.79 MB, free: 5.809 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.382/1.382, allocations: 222.9 MB / 240.5 MB, free: 4.555 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.416/2.416, allocations: 390.2 MB / 0.6649 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.91 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.619/0.6204, allocations: 140.3 MB / 0.9496 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001654/0.6221, allocations: 0.6641 MB / 0.9502 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009888/0.6231, allocations: 1.09 MB / 0.9513 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.27e-05/0.6232, allocations: 5.312 kB / 0.9513 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.659e-05/0.6232, allocations: 0 / 0.9513 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002581/0.6235, allocations: 22.78 kB / 0.9513 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.136e-06/0.6235, allocations: 0 / 0.9513 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.067e-05/0.6235, allocations: 5.375 kB / 0.9513 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.146e-05/0.6236, allocations: 5.375 kB / 0.9513 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.607e-05/0.6236, allocations: 1.375 kB / 0.9513 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.672e-05/0.6236, allocations: 1.375 kB / 0.9513 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.926e-06/0.6236, allocations: 4 kB / 0.9513 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.6237, allocations: 24.16 kB / 0.9514 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.131e-06/0.6238, allocations: 3.938 kB / 0.9514 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.696e-05/0.6238, allocations: 9.297 kB / 0.9514 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.881e-05/0.6238, allocations: 4.125 kB / 0.9514 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.6239, allocations: 0 / 0.9514 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.273e-06/0.6239, allocations: 0 / 0.9514 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.6239, allocations: 0 / 0.9514 GB, free: 7.75 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.0001991/0.6241, allocations: 321 kB / 0.9517 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.6241, allocations: 9.625 kB / 0.9517 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.826e-05/0.6241, allocations: 8.844 kB / 0.9517 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.953e-05/0.6242, allocations: 161.8 kB / 0.9519 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.6242, allocations: 4.312 kB / 0.9519 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.6243, allocations: 1.75 kB / 0.9519 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.176e-05/0.6244, allocations: 42.12 kB / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.6244, allocations: 1.375 kB / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.116e-06/0.6244, allocations: 0 / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.6244, allocations: 3.984 kB / 0.9519 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.123e-05/0.6244, allocations: 8.109 kB / 0.9519 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001027/0.6245, allocations: 152.4 kB / 0.9521 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.6247, allocations: 38.92 kB / 0.9521 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.723e-05/0.6247, allocations: 7.609 kB / 0.9521 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/0.6249, allocations: 85.31 kB / 0.9522 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.3e-05/0.6249, allocations: 34.5 kB / 0.9522 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.6249, allocations: 0 / 0.9522 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.004106/0.629, allocations: 0.5665 MB / 0.9528 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.317e-05/0.629, allocations: 60.66 kB / 0.9528 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.566e-05/0.6291, allocations: 89.86 kB / 0.9529 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.6291, allocations: 29.7 kB / 0.9529 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.046e-05/0.6291, allocations: 84.12 kB / 0.953 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.592e-05/0.6291, allocations: 18.28 kB / 0.953 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.897e-05/0.6292, allocations: 22.39 kB / 0.9531 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.737e-05/0.6292, allocations: 312.1 kB / 0.9534 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005711/0.6298, allocations: 87.3 kB / 0.9534 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005697/0.6304, allocations: 99.06 kB / 0.9535 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.6315, allocations: 190.1 kB / 0.9537 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.6315, allocations: 5.219 kB / 0.9537 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001209/0.6328, allocations: 213.9 kB / 0.9539 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.6328, allocations: 4.781 kB / 0.9539 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.6328, allocations: 1.406 kB / 0.9539 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.6328, allocations: 1.094 kB / 0.9539 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003947/0.6332, allocations: 57.78 kB / 0.954 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.6332, allocations: 1.531 kB / 0.954 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.6336, allocations: 46.69 kB / 0.954 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.6336, allocations: 6.25 kB / 0.954 GB, free: 5.68 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 (5): * Single equations (assignments): 5 * 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 6.251e-05/0.6337, allocations: 108.1 kB / 0.9541 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.982e-05/0.6337, allocations: 5.125 kB / 0.9541 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.635, allocations: 237.7 kB / 0.9544 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.635, allocations: 1.406 kB / 0.9544 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.6351, allocations: 0 / 0.9544 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.6351, allocations: 5.172 kB / 0.9544 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.6365, allocations: 457.9 kB / 0.9548 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.6365, allocations: 0 / 0.9548 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000379/0.6369, allocations: 49.91 kB / 0.9549 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.6369, allocations: 0 / 0.9549 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.6369, allocations: 1.438 kB / 0.9549 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.6369, allocations: 0 / 0.9549 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.6369, allocations: 1.031 kB / 0.9549 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.6381, allocations: 308 kB / 0.9552 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.651e-05/0.6381, allocations: 81.02 kB / 0.9552 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.6381, allocations: 8 kB / 0.9552 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003505/0.6385, allocations: 35.92 kB / 0.9553 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.262e-05/0.6385, allocations: 11.92 kB / 0.9553 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.6385, allocations: 4 kB / 0.9553 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.222e-05/0.6386, allocations: 75.28 kB / 0.9554 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6386, allocations: 0 / 0.9554 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002595/0.6388, allocations: 7.312 kB / 0.9554 GB, free: 4.691 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 (5): * Single equations (assignments): 5 * 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.000154/0.639, allocations: 109.7 kB / 0.9555 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001235/0.6402, allocations: 192.7 kB / 0.9557 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6402, allocations: 0 / 0.9557 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005732/0.6408, allocations: 84.67 kB / 0.9557 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.641, allocations: 5.703 kB / 0.9558 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.6421, allocations: 239.6 kB / 0.956 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.663e-05/0.6422, allocations: 0.6771 MB / 0.9566 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.051e-05/0.6423, allocations: 15.28 kB / 0.9567 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6423, allocations: 0 / 0.9567 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of Templates: time 0.002262/0.6446, allocations: 1.097 MB / 0.9577 GB, free: 3.051 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches