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.001811/0.001811, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.002055/0.002055, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.602/1.602, allocations: 230.6 MB / 252.8 MB, free: 8.945 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.433/3.433, allocations: 0.49 GB / 0.7916 GB, free: 33.41 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",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.002057/0.002057, allocations: 71.48 kB / 1.149 GB, free: 26.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3762, allocations: 176.1 MB / 1.321 GB, free: 3.41 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001785/0.378, allocations: 0.5786 MB / 1.321 GB, free: 2.832 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002612/0.3782, allocations: 51.78 kB / 1.321 GB, free: 2.781 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.505e-05/0.3783, allocations: 4 kB / 1.321 GB, free: 2.777 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.3783, allocations: 0 / 1.321 GB, free: 2.777 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.3783, allocations: 0 / 1.321 GB, free: 2.777 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002213/0.3785, allocations: 19.92 kB / 1.321 GB, free: 2.758 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 3.846e-05/0.3785, allocations: 0 / 1.321 GB, free: 2.758 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.586e-05/0.3786, allocations: 4 kB / 1.321 GB, free: 2.754 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.589e-05/0.3786, allocations: 7.984 kB / 1.322 GB, free: 2.746 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 1.999e-05/0.3786, allocations: 0 / 1.322 GB, free: 2.746 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.666e-06/0.3786, allocations: 0 / 1.322 GB, free: 2.746 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.3787, allocations: 19.97 kB / 1.322 GB, free: 2.727 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.556e-06/0.3787, allocations: 4 kB / 1.322 GB, free: 2.723 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 1.799e-05/0.3788, allocations: 8 kB / 1.322 GB, free: 2.715 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 8.14e-05/0.3788, allocations: 11.92 kB / 1.322 GB, free: 2.703 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3788, allocations: 0 / 1.322 GB, free: 2.703 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3788, allocations: 0 / 1.322 GB, free: 2.703 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.3789, allocations: 0 / 1.322 GB, free: 2.703 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.0003177/0.3792, allocations: 319.8 kB / 1.322 GB, free: 2.34 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.3792, allocations: 16.02 kB / 1.322 GB, free: 2.324 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.889e-05/0.3793, allocations: 30.75 kB / 1.322 GB, free: 2.285 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002932/0.3796, allocations: 20.91 kB / 1.322 GB, free: 2.266 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.3797, allocations: 160.4 kB / 1.322 GB, free: 2.07 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.3797, allocations: 384 / 1.322 GB, free: 2.07 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-06/0.3797, allocations: 384 / 1.322 GB, free: 2.07 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001479/0.3798, allocations: 42.17 kB / 1.322 GB, free: 2.023 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.3799, allocations: 7.938 kB / 1.322 GB, free: 2.016 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.3799, allocations: 0 / 1.322 GB, free: 2.016 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3799, allocations: 3.938 kB / 1.322 GB, free: 2.012 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.979e-05/0.38, allocations: 11.98 kB / 1.322 GB, free: 2 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.3801, allocations: 149.7 kB / 1.322 GB, free: 1.805 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 8.847e-05/0.3802, allocations: 22.59 kB / 1.322 GB, free: 1.773 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.301e-05/0.3803, allocations: 13.31 kB / 1.322 GB, free: 1.758 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.3803, allocations: 3.938 kB / 1.322 GB, free: 1.754 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.3804, allocations: 38.56 kB / 1.322 GB, free: 1.707 MB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.3804, allocations: 0 / 1.322 GB, free: 1.707 MB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0002586/0.3806, allocations: 49.61 kB / 1.322 GB, free: 1.652 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.3807, allocations: 55.41 kB / 1.322 GB, free: 1.586 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.62e-05/0.3807, allocations: 89.86 kB / 1.323 GB, free: 1.488 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.3807, allocations: 25.7 kB / 1.323 GB, free: 1.457 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.247e-05/0.3808, allocations: 80.14 kB / 1.323 GB, free: 1.375 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.3808, allocations: 8.078 kB / 1.323 GB, free: 1.367 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.3808, allocations: 9.719 kB / 1.323 GB, free: 1.352 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.381, allocations: 318.8 kB / 1.323 GB, free: 1.031 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.11e-05/0.381, allocations: 0 / 1.323 GB, free: 1.031 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.029e-05/0.3811, allocations: 11.92 kB / 1.323 GB, free: 1.02 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.3812, allocations: 20.84 kB / 1.323 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.3812, allocations: 8 kB / 1.323 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001382/0.3813, allocations: 37.69 kB / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3813, allocations: 9.562 kB / 1.323 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3813, allocations: 3.938 kB / 1.323 GB, free: 0.9336 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.3814, allocations: 0 / 1.323 GB, free: 0.9336 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.466e-05/0.3814, allocations: 4 kB / 1.323 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.3814, allocations: 0 / 1.323 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.756e-05/0.3815, allocations: 3.984 kB / 1.323 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.3815, allocations: 32 / 1.323 GB, free: 0.9258 MB / 1.014 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 8.398e-05/0.3816, allocations: 113.8 kB / 1.323 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-06/0.3816, allocations: 0 / 1.323 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.3816, allocations: 15 kB / 1.323 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3816, allocations: 0 / 1.323 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3816, allocations: 0 / 1.323 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.3816, allocations: 0 / 1.323 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.3817, allocations: 149.7 kB / 1.323 GB, free: 0.5938 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3817, allocations: 4 kB / 1.323 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.36e-05/0.3818, allocations: 4 kB / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.3818, allocations: 0 / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.3818, allocations: 3.938 kB / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.3818, allocations: 7.984 kB / 1.323 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3818, allocations: 0 / 1.323 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001583/0.382, allocations: 65.12 kB / 1.323 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 4.452e-05/0.382, allocations: 81.05 kB / 1.323 GB, free: 404 kB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.382, allocations: 11.97 kB / 1.323 GB, free: 392 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.43e-05/0.3821, allocations: 3.984 kB / 1.323 GB, free: 388 kB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.023e-05/0.3821, allocations: 0 / 1.323 GB, free: 388 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.3821, allocations: 0 / 1.323 GB, free: 388 kB / 1.014 GB Notification: Performance of sorting global known variables: time 3.403e-05/0.3821, allocations: 75.28 kB / 1.324 GB, free: 312 kB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/0.3821, allocations: 3.938 kB / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001896/0.3823, allocations: 4 kB / 1.324 GB, free: 304 kB / 1.014 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.0005214/0.3828, allocations: 0.6046 MB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001516/0.383, allocations: 11.98 kB / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.383, allocations: 0 / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.425e-05/0.383, allocations: 12.03 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.3832, allocations: 3.938 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004034/0.3836, allocations: 118.4 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.3839, allocations: 0.6768 MB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.21e-05/0.3839, allocations: 0 / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.825e-05/0.3839, allocations: 11.5 kB / 1.325 GB, free: 14.76 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3839, allocations: 0 / 1.325 GB, free: 14.76 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.4127, allocations: 0.9583 MB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.903/8.315, allocations: 15.39 kB / 1.326 GB, free: 13.88 MB / 1.029 GB " [Timeout remaining time 292] (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: 15.562714213971049]