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.001975/0.001975, allocations: 118.6 kB / 17.16 MB, free: 5.914 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.002034/0.002034, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.567/1.567, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.088/3.088, allocations: 0.49 GB / 0.7923 GB, free: 1.289 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.002358/0.002358, allocations: 71.91 kB / 1.15 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.171/1.174, allocations: 176.1 MB / 1.322 GB, free: 24.73 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001726/1.175, allocations: 0.5774 MB / 1.322 GB, free: 24.38 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002559/1.176, allocations: 52.88 kB / 1.322 GB, free: 24.35 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.697e-05/1.176, allocations: 2.906 kB / 1.322 GB, free: 24.35 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/1.176, allocations: 4 kB / 1.322 GB, free: 24.34 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.151e-06/1.176, allocations: 0 / 1.322 GB, free: 24.34 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/1.176, allocations: 14.14 kB / 1.322 GB, free: 24.34 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 4.481e-05/1.176, allocations: 2.594 kB / 1.322 GB, free: 24.34 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.914e-05/1.176, allocations: 0 / 1.322 GB, free: 24.34 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 1.409e-05/1.176, allocations: 2.562 kB / 1.322 GB, free: 24.34 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 2.147e-05/1.176, allocations: 0 / 1.322 GB, free: 24.34 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.004e-05/1.176, allocations: 0 / 1.322 GB, free: 24.34 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/1.176, allocations: 21.89 kB / 1.322 GB, free: 24.33 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.119e-05/1.176, allocations: 0 / 1.322 GB, free: 24.33 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.55e-05/1.176, allocations: 3.984 kB / 1.322 GB, free: 24.33 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 8.143e-05/1.176, allocations: 24.34 kB / 1.322 GB, free: 24.32 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/1.176, allocations: 7.031 kB / 1.322 GB, free: 24.31 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.593e-06/1.176, allocations: 0 / 1.322 GB, free: 24.31 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.13e-06/1.176, allocations: 0 / 1.322 GB, free: 24.31 MB / 1.061 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.0002455/1.177, allocations: 316 kB / 1.323 GB, free: 23.96 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/1.177, allocations: 12.39 kB / 1.323 GB, free: 23.96 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.114e-05/1.177, allocations: 7.094 kB / 1.323 GB, free: 23.95 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.729e-05/1.177, allocations: 30.75 kB / 1.323 GB, free: 23.91 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/1.177, allocations: 20.22 kB / 1.323 GB, free: 23.91 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.934e-05/1.177, allocations: 168.3 kB / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/1.177, allocations: 384 / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/1.177, allocations: 384 / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/1.177, allocations: 42.89 kB / 1.323 GB, free: 23.67 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/1.177, allocations: 0 / 1.323 GB, free: 23.67 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/1.177, allocations: 0 / 1.323 GB, free: 23.67 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/1.177, allocations: 0 / 1.323 GB, free: 23.67 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.467e-05/1.177, allocations: 12.61 kB / 1.323 GB, free: 23.67 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000107/1.177, allocations: 151.9 kB / 1.323 GB, free: 23.48 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 7.271e-05/1.177, allocations: 21.39 kB / 1.323 GB, free: 23.45 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.894e-05/1.178, allocations: 10.88 kB / 1.323 GB, free: 23.44 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/1.178, allocations: 0 / 1.323 GB, free: 23.44 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/1.178, allocations: 38.5 kB / 1.323 GB, free: 23.39 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/1.178, allocations: 2.875 kB / 1.323 GB, free: 23.39 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0002375/1.178, allocations: 44.06 kB / 1.323 GB, free: 23.36 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/1.178, allocations: 57.5 kB / 1.323 GB, free: 23.3 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.93e-05/1.178, allocations: 89.86 kB / 1.323 GB, free: 23.2 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/1.178, allocations: 29.64 kB / 1.323 GB, free: 23.16 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.634e-05/1.178, allocations: 80.14 kB / 1.323 GB, free: 23.08 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.298e-05/1.178, allocations: 8.078 kB / 1.323 GB, free: 23.07 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.833e-05/1.178, allocations: 12.56 kB / 1.323 GB, free: 23.06 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.826e-05/1.178, allocations: 310.8 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.015e-05/1.178, allocations: 6.203 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.767e-05/1.178, allocations: 2.969 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.633e-05/1.178, allocations: 28.09 kB / 1.324 GB, free: 22.73 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.178, allocations: 3.938 kB / 1.324 GB, free: 22.73 MB / 1.061 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001129/1.178, allocations: 38.05 kB / 1.324 GB, free: 22.7 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/1.178, allocations: 6.781 kB / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/1.178, allocations: 2.969 kB / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/1.178, allocations: 0 / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.607e-05/1.178, allocations: 10.14 kB / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/1.178, allocations: 0 / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.2e-05/1.178, allocations: 0 / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/1.178, allocations: 6.906 kB / 1.324 GB, free: 22.68 MB / 1.061 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 5.364e-05/1.179, allocations: 115.2 kB / 1.324 GB, free: 22.57 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.235e-06/1.179, allocations: 3.938 kB / 1.324 GB, free: 22.56 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.07e-05/1.179, allocations: 3.125 kB / 1.324 GB, free: 22.56 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/1.179, allocations: 2.875 kB / 1.324 GB, free: 22.56 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/1.179, allocations: 0 / 1.324 GB, free: 22.56 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/1.179, allocations: 0 / 1.324 GB, free: 22.56 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.192e-05/1.179, allocations: 149 kB / 1.324 GB, free: 22.37 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/1.179, allocations: 0 / 1.324 GB, free: 22.37 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.926e-05/1.179, allocations: 7.031 kB / 1.324 GB, free: 22.36 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/1.179, allocations: 6.938 kB / 1.324 GB, free: 22.36 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/1.179, allocations: 0 / 1.324 GB, free: 22.36 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/1.179, allocations: 3.375 kB / 1.324 GB, free: 22.36 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.179, allocations: 3.984 kB / 1.324 GB, free: 22.36 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001272/1.179, allocations: 65.56 kB / 1.324 GB, free: 22.29 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.259e-05/1.179, allocations: 88.17 kB / 1.324 GB, free: 22.18 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/1.179, allocations: 7.266 kB / 1.324 GB, free: 22.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.983e-05/1.179, allocations: 0 / 1.324 GB, free: 22.18 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.247e-05/1.179, allocations: 2.594 kB / 1.324 GB, free: 22.18 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/1.179, allocations: 0 / 1.324 GB, free: 22.18 MB / 1.061 GB Notification: Performance of sorting global known variables: time 1.802e-05/1.179, allocations: 75.28 kB / 1.324 GB, free: 22.11 MB / 1.061 GB Notification: Performance of sort global known variables: time 4e-08/1.179, allocations: 0 / 1.324 GB, free: 22.11 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001758/1.179, allocations: 2.719 kB / 1.324 GB, free: 22.11 MB / 1.061 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.0003375/1.179, allocations: 0.6013 MB / 1.325 GB, free: 21.5 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001606/1.18, allocations: 19.11 kB / 1.325 GB, free: 21.5 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/1.18, allocations: 0 / 1.325 GB, free: 21.5 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 4.443e-05/1.18, allocations: 9.094 kB / 1.325 GB, free: 21.5 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000137/1.18, allocations: 0 / 1.325 GB, free: 21.5 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003309/1.18, allocations: 130.7 kB / 1.325 GB, free: 21.35 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/1.18, allocations: 0.669 MB / 1.326 GB, free: 20.66 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.907e-05/1.18, allocations: 7.281 kB / 1.326 GB, free: 20.65 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.511e-05/1.18, allocations: 7.438 kB / 1.326 GB, free: 20.64 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/1.18, allocations: 0 / 1.326 GB, free: 20.64 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/1.197, allocations: 0.9892 MB / 1.327 GB, free: 20.27 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/9.405, allocations: 10.05 kB / 1.327 GB, free: 20.27 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.49075500899926]