Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",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.001151/0.001151, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 192 kB / 16.53 MB, free: 6.391 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.216/1.216, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.088/2.088, allocations: 390.3 MB / 0.6647 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001279, allocations: 67.89 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5248/0.5261, allocations: 140.4 MB / 0.9497 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001423/0.5276, allocations: 0.5828 MB / 0.9503 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004616/0.528, allocations: 316 kB / 0.9506 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.324e-05/0.528, allocations: 0 / 0.9506 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.172e-05/0.5281, allocations: 0 / 0.9506 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.817e-06/0.5281, allocations: 4 kB / 0.9506 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003446/0.5284, allocations: 111.3 kB / 0.9507 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.465e-05/0.5285, allocations: 1.094 kB / 0.9507 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.584e-05/0.5285, allocations: 1.625 kB / 0.9507 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.341e-05/0.5285, allocations: 7.938 kB / 0.9507 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.717e-05/0.5286, allocations: 5.297 kB / 0.9507 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.824e-06/0.5286, allocations: 0 / 0.9507 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003059/0.5289, allocations: 270.1 kB / 0.951 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.465e-06/0.5289, allocations: 5.031 kB / 0.951 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.243e-05/0.5289, allocations: 0 / 0.951 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.529, allocations: 83.48 kB / 0.9511 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.529, allocations: 1.406 kB / 0.9511 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5291, allocations: 0 / 0.9511 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.914e-06/0.5291, allocations: 0 / 0.9511 GB, free: 8.184 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.0001858/0.5293, allocations: 339.8 kB / 0.9514 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.5293, allocations: 10.12 kB / 0.9514 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.144e-05/0.5293, allocations: 30.75 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.512e-05/0.5294, allocations: 0.9375 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.953e-05/0.5294, allocations: 169.5 kB / 0.9516 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.606e-06/0.5294, allocations: 4.359 kB / 0.9516 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-06/0.5294, allocations: 1.469 kB / 0.9516 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.25e-05/0.5295, allocations: 28.73 kB / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.5295, allocations: 7.875 kB / 0.9516 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.42e-06/0.5295, allocations: 0 / 0.9516 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.5295, allocations: 0 / 0.9516 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.692e-05/0.5296, allocations: 1.656 kB / 0.9516 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.885e-05/0.5296, allocations: 151.2 kB / 0.9518 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.569e-05/0.5297, allocations: 19.73 kB / 0.9518 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.247e-05/0.5297, allocations: 11.28 kB / 0.9518 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003381/0.53, allocations: 424.6 kB / 0.9522 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.5301, allocations: 35.47 kB / 0.9523 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.5301, allocations: 0 / 0.9523 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001092/0.5302, allocations: 39.11 kB / 0.9523 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.811e-05/0.5302, allocations: 51.41 kB / 0.9523 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.065e-05/0.5302, allocations: 90.92 kB / 0.9524 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.08e-06/0.5302, allocations: 25.7 kB / 0.9525 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.044e-06/0.5302, allocations: 80.14 kB / 0.9525 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.5303, allocations: 4.844 kB / 0.9525 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.5303, allocations: 23.61 kB / 0.9526 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.178e-05/0.5303, allocations: 311.8 kB / 0.9529 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.005e-06/0.5303, allocations: 0.9375 kB / 0.9529 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.32e-06/0.5303, allocations: 1.25 kB / 0.9529 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.865e-05/0.5304, allocations: 11.05 kB / 0.9529 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.5304, allocations: 0.9062 kB / 0.9529 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.799e-05/0.5304, allocations: 31.05 kB / 0.9529 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.5304, allocations: 5.031 kB / 0.9529 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.5304, allocations: 9.406 kB / 0.9529 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.5305, allocations: 0 / 0.9529 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.181e-05/0.5305, allocations: 5.203 kB / 0.9529 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.5305, allocations: 5.5 kB / 0.9529 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.895e-06/0.5305, allocations: 0 / 0.9529 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-06/0.5305, allocations: 4 kB / 0.9529 GB, free: 6.043 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.057e-05/0.5306, allocations: 107.3 kB / 0.953 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.5306, allocations: 1.344 kB / 0.953 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.084e-05/0.5306, allocations: 51.25 kB / 0.9531 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.5306, allocations: 2.281 kB / 0.9531 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.5307, allocations: 7.875 kB / 0.9531 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.5307, allocations: 0 / 0.9531 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.934e-05/0.5307, allocations: 146.8 kB / 0.9532 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.5307, allocations: 0 / 0.9532 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.077e-05/0.5307, allocations: 2.219 kB / 0.9532 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.5307, allocations: 0 / 0.9532 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.909e-06/0.5307, allocations: 5.25 kB / 0.9532 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.5307, allocations: 0 / 0.9532 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5307, allocations: 8.016 kB / 0.9532 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.168e-05/0.5308, allocations: 63.19 kB / 0.9533 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.162e-05/0.5308, allocations: 78.33 kB / 0.9534 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.566e-06/0.5308, allocations: 3.938 kB / 0.9534 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.031e-06/0.5308, allocations: 1.094 kB / 0.9534 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.456e-06/0.5309, allocations: 5.078 kB / 0.9534 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-06/0.5309, allocations: 0 / 0.9534 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.097e-06/0.5309, allocations: 79.31 kB / 0.9535 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.5309, allocations: 1.281 kB / 0.9535 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000175/0.5311, allocations: 8.719 kB / 0.9535 GB, free: 5.414 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.0002324/0.5313, allocations: 0.6095 MB / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.272e-05/0.5314, allocations: 11.5 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.5314, allocations: 1.156 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.312e-06/0.5314, allocations: 2.031 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001154/0.5315, allocations: 2.312 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000208/0.5317, allocations: 107.1 kB / 0.9542 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.907e-05/0.5318, allocations: 0.6776 MB / 0.9548 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.339e-05/0.5318, allocations: 1.062 kB / 0.9548 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.059e-05/0.5318, allocations: 11.56 kB / 0.9549 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of SimCode: time 8.01e-07/0.5318, allocations: 1.125 kB / 0.9549 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01548/0.5473, allocations: 1.159 MB / 0.956 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.895/8.442, allocations: 8.328 kB / 0.956 GB, free: 3.27 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:time,y