Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep",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.0009226/0.0009228, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004828/0.004828, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.228/1.228, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.127/2.127, allocations: 390.9 MB / 0.6664 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003336/0.0003336, allocations: 11.98 kB / 0.8161 GB, free: 13.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.523/0.5233, allocations: 142.4 MB / 0.9552 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.0005464/0.5239, allocations: 319.4 kB / 0.9555 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002184/0.5241, allocations: 49.45 kB / 0.9555 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.065e-06/0.5242, allocations: 0 / 0.9555 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.056e-05/0.5242, allocations: 0 / 0.9555 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.759e-06/0.5242, allocations: 0 / 0.9555 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001577/0.5243, allocations: 15.67 kB / 0.9555 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 2.796e-05/0.5244, allocations: 5.625 kB / 0.9556 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.225e-05/0.5244, allocations: 1.375 kB / 0.9556 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.168e-05/0.5244, allocations: 1.312 kB / 0.9556 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.684e-05/0.5245, allocations: 3.938 kB / 0.9556 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.536e-06/0.5245, allocations: 1.688 kB / 0.9556 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.911e-05/0.5246, allocations: 21.56 kB / 0.9556 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.393e-06/0.5246, allocations: 0 / 0.9556 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.627e-05/0.5246, allocations: 29.69 kB / 0.9556 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.555e-05/0.5247, allocations: 14.48 kB / 0.9556 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.5247, allocations: 0 / 0.9556 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5247, allocations: 5.312 kB / 0.9556 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.876e-06/0.5247, allocations: 0 / 0.9556 GB, free: 7.266 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000151/0.5249, allocations: 308.9 kB / 0.9559 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.5249, allocations: 10.19 kB / 0.9559 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.932e-05/0.5249, allocations: 34.73 kB / 0.956 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.5251, allocations: 22.34 kB / 0.956 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.989e-05/0.5252, allocations: 168.3 kB / 0.9561 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-06/0.5252, allocations: 1.562 kB / 0.9562 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-06/0.5252, allocations: 4.375 kB / 0.9562 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.5253, allocations: 38.22 kB / 0.9562 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.5253, allocations: 5.094 kB / 0.9562 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.144e-06/0.5254, allocations: 0 / 0.9562 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.5254, allocations: 0 / 0.9562 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.765e-05/0.5254, allocations: 9.328 kB / 0.9562 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.567e-05/0.5255, allocations: 147.8 kB / 0.9563 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.183e-05/0.5256, allocations: 26.36 kB / 0.9564 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.468e-05/0.5256, allocations: 15.81 kB / 0.9564 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.494e-05/0.5257, allocations: 5 kB / 0.9564 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.24e-05/0.5257, allocations: 31.66 kB / 0.9564 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.5257, allocations: 0 / 0.9564 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001857/0.5259, allocations: 48.72 kB / 0.9565 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.614e-05/0.5259, allocations: 55.39 kB / 0.9565 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.283e-05/0.5259, allocations: 89.86 kB / 0.9566 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.621e-06/0.5259, allocations: 26.98 kB / 0.9566 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.066e-06/0.5259, allocations: 84.14 kB / 0.9567 GB, free: 6 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.526, allocations: 5.312 kB / 0.9567 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.655e-05/0.526, allocations: 9.719 kB / 0.9567 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.127e-05/0.526, allocations: 310.8 kB / 0.957 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.922e-05/0.5261, allocations: 6.906 kB / 0.957 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.465e-05/0.5261, allocations: 12.11 kB / 0.957 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.8e-05/0.5262, allocations: 15.47 kB / 0.9571 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5262, allocations: 0 / 0.9571 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001012/0.5263, allocations: 42.62 kB / 0.9571 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.5263, allocations: 5.719 kB / 0.9571 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.5263, allocations: 7.938 kB / 0.9571 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.197e-06/0.5263, allocations: 1.062 kB / 0.9571 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.495e-05/0.5264, allocations: 6.141 kB / 0.9571 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.5264, allocations: 1.188 kB / 0.9571 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.934e-05/0.5264, allocations: 1.25 kB / 0.9571 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.5265, allocations: 1.156 kB / 0.9571 GB, free: 5.594 MB / 0.7169 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 3.576e-05/0.5265, allocations: 110.9 kB / 0.9572 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-06/0.5265, allocations: 0 / 0.9572 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.107e-05/0.5265, allocations: 12.25 kB / 0.9572 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.5265, allocations: 3.984 kB / 0.9572 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.5265, allocations: 0 / 0.9572 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.5265, allocations: 1.188 kB / 0.9572 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.157e-05/0.5266, allocations: 146.8 kB / 0.9574 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.5266, allocations: 0 / 0.9574 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.613e-05/0.5266, allocations: 10.36 kB / 0.9574 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.5266, allocations: 1.156 kB / 0.9574 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.209e-06/0.5267, allocations: 3.938 kB / 0.9574 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.5267, allocations: 1.156 kB / 0.9574 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5267, allocations: 4 kB / 0.9574 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001103/0.5268, allocations: 67.25 kB / 0.9575 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.136e-05/0.5268, allocations: 80.39 kB / 0.9575 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.03e-05/0.5268, allocations: 7.922 kB / 0.9575 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.834e-05/0.5269, allocations: 2.312 kB / 0.9576 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-06/0.5269, allocations: 0 / 0.9576 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.5269, allocations: 9.156 kB / 0.9576 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.395e-06/0.5269, allocations: 79.22 kB / 0.9576 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5269, allocations: 0 / 0.9576 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001811/0.5271, allocations: 2.125 kB / 0.9576 GB, free: 4.992 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 (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.0002393/0.5273, allocations: 0.6036 MB / 0.9582 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000106/0.5274, allocations: 15.73 kB / 0.9582 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.5274, allocations: 0 / 0.9582 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.962e-05/0.5275, allocations: 8.531 kB / 0.9583 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001153/0.5276, allocations: 5.266 kB / 0.9583 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002474/0.5279, allocations: 107.2 kB / 0.9584 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.712e-05/0.5279, allocations: 0.6703 MB / 0.959 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.144e-05/0.528, allocations: 1.188 kB / 0.959 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.801e-05/0.528, allocations: 8.438 kB / 0.959 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of SimCode: time 3.71e-07/0.528, allocations: 0 / 0.959 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2891/0.8172, allocations: 0.7704 MB / 0.9598 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002008/0.8174, allocations: 202.1 kB / 0.96 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.501/2.319, allocations: 1 kB / 0.96 GB, free: 2.91 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:time,y