Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 101.8 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002196/0.002196, allocations: 217 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.488/1.488, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.347/3.347, allocations: 0.49 GB / 0.7959 GB, free: 33.36 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003001/0.003001, allocations: 66.56 kB / 1.155 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.4249, allocations: 176.1 MB / 1.327 GB, free: 1.926 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002594/0.4275, allocations: 0.5865 MB / 1.327 GB, free: 1.344 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.000336/0.4278, allocations: 48.25 kB / 1.327 GB, free: 1.297 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.949e-05/0.4278, allocations: 0 / 1.327 GB, free: 1.297 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.937e-05/0.4278, allocations: 4 kB / 1.327 GB, free: 1.293 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.124e-06/0.4279, allocations: 0 / 1.327 GB, free: 1.293 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.4282, allocations: 19.91 kB / 1.327 GB, free: 1.273 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 5.556e-05/0.4282, allocations: 4 kB / 1.327 GB, free: 1.27 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 6.077e-05/0.4283, allocations: 4 kB / 1.327 GB, free: 1.266 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.909e-05/0.4283, allocations: 0 / 1.327 GB, free: 1.266 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.209e-05/0.4283, allocations: 0 / 1.327 GB, free: 1.266 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.4283, allocations: 0 / 1.327 GB, free: 1.266 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.4285, allocations: 19.98 kB / 1.327 GB, free: 1.246 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.394e-05/0.4285, allocations: 0 / 1.327 GB, free: 1.246 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.465e-05/0.4285, allocations: 8 kB / 1.327 GB, free: 1.238 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.4287, allocations: 24.17 kB / 1.327 GB, free: 1.215 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.4287, allocations: 0 / 1.327 GB, free: 1.215 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.595e-06/0.4287, allocations: 0 / 1.327 GB, free: 1.215 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.4287, allocations: 0 / 1.327 GB, free: 1.215 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004011/0.4291, allocations: 242.4 kB / 1.328 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.4291, allocations: 8.031 kB / 1.328 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.874e-05/0.4291, allocations: 4.188 kB / 1.328 GB, free: 0.9336 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.555e-05/0.4292, allocations: 34.69 kB / 1.328 GB, free: 0.8906 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003349/0.4295, allocations: 20.91 kB / 1.328 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.4296, allocations: 106.5 kB / 1.328 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.4296, allocations: 384 / 1.328 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.4297, allocations: 4.375 kB / 1.328 GB, free: 0.7383 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.4298, allocations: 38 kB / 1.328 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.4298, allocations: 0 / 1.328 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.4299, allocations: 3.984 kB / 1.328 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.4299, allocations: 8 kB / 1.328 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001225/0.43, allocations: 11.98 kB / 1.328 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001956/0.4302, allocations: 116.8 kB / 1.328 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.4303, allocations: 26.53 kB / 1.328 GB, free: 492 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.805e-05/0.4304, allocations: 4.859 kB / 1.328 GB, free: 484 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.4304, allocations: 4.062 kB / 1.328 GB, free: 480 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.4304, allocations: 42.5 kB / 1.328 GB, free: 428 kB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.4304, allocations: 0 / 1.328 GB, free: 428 kB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0003146/0.4307, allocations: 49.61 kB / 1.328 GB, free: 372 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.4308, allocations: 55.34 kB / 1.328 GB, free: 304 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.804e-05/0.4309, allocations: 89.86 kB / 1.328 GB, free: 204 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.4309, allocations: 25.7 kB / 1.328 GB, free: 172 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.4309, allocations: 84.27 kB / 1.328 GB, free: 84 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.985e-05/0.431, allocations: 3.953 kB / 1.328 GB, free: 80 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-05/0.431, allocations: 21.7 kB / 1.328 GB, free: 52 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001989/0.4312, allocations: 310.8 kB / 1.329 GB, free: 15.74 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.432e-05/0.4313, allocations: 4 kB / 1.329 GB, free: 15.73 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.511e-05/0.4313, allocations: 3.984 kB / 1.329 GB, free: 15.73 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.4315, allocations: 20.91 kB / 1.329 GB, free: 15.71 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4315, allocations: 3.938 kB / 1.329 GB, free: 15.7 MB / 1.029 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001778/0.4316, allocations: 37.69 kB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.4317, allocations: 15.88 kB / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4317, allocations: 0 / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.4317, allocations: 0 / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.46e-05/0.4318, allocations: 7.984 kB / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.4318, allocations: 0 / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.693e-05/0.4318, allocations: 4.031 kB / 1.329 GB, free: 15.63 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.026e-06/0.4318, allocations: 0 / 1.329 GB, free: 15.63 MB / 1.029 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 (1): * Single equations (assignments): 1 * 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 0.0001089/0.432, allocations: 114.4 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.489e-05/0.432, allocations: 3.938 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.984e-05/0.432, allocations: 3 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.432, allocations: 0 / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.432, allocations: 0 / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.432, allocations: 0 / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/0.4322, allocations: 120.8 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.4322, allocations: 4 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.726e-05/0.4322, allocations: 4 kB / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.4322, allocations: 7.922 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.4322, allocations: 0 / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.4322, allocations: 0 / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4322, allocations: 0 / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002049/0.4324, allocations: 69.06 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.696e-06/0.4324, allocations: 7.969 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.4325, allocations: 3.938 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.405e-05/0.4325, allocations: 3.984 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.96e-05/0.4325, allocations: 8 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.4325, allocations: 0 / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.673e-05/0.4326, allocations: 75.28 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4326, allocations: 0 / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002803/0.4329, allocations: 0 / 1.329 GB, free: 15.14 MB / 1.029 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 (1): * Single equations (assignments): 1 * 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.0006035/0.4335, allocations: 0.6046 MB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001911/0.4337, allocations: 19.92 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4337, allocations: 0 / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.974e-05/0.4337, allocations: 8.094 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.4339, allocations: 4 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000502/0.4344, allocations: 114.5 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.4348, allocations: 0.6729 MB / 1.331 GB, free: 13.62 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.231e-05/0.4349, allocations: 4.062 kB / 1.331 GB, free: 13.62 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.524e-05/0.4349, allocations: 7.438 kB / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of SimCode: time 4.41e-07/0.4349, allocations: 0 / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02212/0.457, allocations: 1.087 MB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.5, allocations: 14.56 kB / 1.332 GB, free: 12.66 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.669039397034794]