Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_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.005006/0.005006, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001152/0.001152, allocations: 195.2 kB / 16.68 MB, free: 5.52 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.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.183/2.183, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 59.91 kB / 0.9504 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.784/0.7855, allocations: 140.4 MB / 1.087 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002134/0.7876, allocations: 1.438 MB / 1.089 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006208/0.7883, allocations: 389.2 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.112e-05/0.7883, allocations: 1.125 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.353e-05/0.7883, allocations: 4.641 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.283e-05/0.7884, allocations: 12.92 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004101/0.7888, allocations: 112.8 kB / 1.089 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.677e-05/0.7889, allocations: 25.36 kB / 1.089 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.953e-05/0.789, allocations: 5.062 kB / 1.089 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.789, allocations: 12.75 kB / 1.089 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.854e-05/0.7891, allocations: 10.72 kB / 1.089 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.27e-05/0.7891, allocations: 2.312 kB / 1.089 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003894/0.7895, allocations: 274.1 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.565e-05/0.7895, allocations: 10.44 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.66e-05/0.7895, allocations: 11.78 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.7897, allocations: 106.2 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.7897, allocations: 5.062 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.412e-06/0.7898, allocations: 3.938 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.7898, allocations: 0 / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003793/0.7901, allocations: 363.6 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.7902, allocations: 9.719 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.468e-05/0.7902, allocations: 32.64 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.537e-05/0.7903, allocations: 2.031 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.347e-05/0.7904, allocations: 172.2 kB / 1.09 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-06/0.7904, allocations: 5.438 kB / 1.09 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.7904, allocations: 5.5 kB / 1.09 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001624/0.7906, allocations: 53.27 kB / 1.09 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.7906, allocations: 8.5 kB / 1.09 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-06/0.7906, allocations: 0 / 1.09 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.7906, allocations: 1.125 kB / 1.09 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.7908, allocations: 33.2 kB / 1.09 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000239/0.791, allocations: 246 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001196/0.7911, allocations: 48.3 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.756e-05/0.7912, allocations: 23.38 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005692/0.7918, allocations: 460.3 kB / 1.091 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.353e-05/0.7918, allocations: 34.56 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.7918, allocations: 1.156 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003595/0.7922, allocations: 77.75 kB / 1.091 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.798e-05/0.7922, allocations: 56.14 kB / 1.091 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.975e-05/0.7923, allocations: 108 kB / 1.091 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.575e-06/0.7923, allocations: 30.83 kB / 1.091 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.343e-05/0.7923, allocations: 82.03 kB / 1.092 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.7923, allocations: 5.766 kB / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.634e-05/0.7924, allocations: 16.55 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.065e-05/0.7924, allocations: 313.5 kB / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.54e-05/0.7925, allocations: 18.58 kB / 1.092 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.646e-05/0.7926, allocations: 18.89 kB / 1.092 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001526/0.7928, allocations: 41.36 kB / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.7928, allocations: 3.938 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002099/0.793, allocations: 68.12 kB / 1.092 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.793, allocations: 5.312 kB / 1.092 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.793, allocations: 9.844 kB / 1.092 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.793, allocations: 0 / 1.092 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.301e-05/0.7931, allocations: 12.81 kB / 1.092 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.7931, allocations: 1.109 kB / 1.092 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.946e-05/0.7932, allocations: 10.23 kB / 1.092 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.7932, allocations: 0.5625 kB / 1.092 GB, free: 1.445 MB / 0.8575 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 (2): * Single equations (assignments): 2 * 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 4.142e-05/0.7932, allocations: 112.6 kB / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.558e-05/0.7933, allocations: 1.953 kB / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002271/0.7935, allocations: 81.02 kB / 1.092 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.7935, allocations: 1.891 kB / 1.092 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.7935, allocations: 0 / 1.092 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.7935, allocations: 0 / 1.092 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/0.7937, allocations: 169.7 kB / 1.092 GB, free: 17.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.7937, allocations: 0.7188 kB / 1.092 GB, free: 17.07 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.181e-05/0.7938, allocations: 12.94 kB / 1.092 GB, free: 17.07 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.7938, allocations: 0 / 1.092 GB, free: 17.07 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.7938, allocations: 5.297 kB / 1.092 GB, free: 17.06 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.7938, allocations: 0.9062 kB / 1.092 GB, free: 17.06 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7938, allocations: 0.5625 kB / 1.092 GB, free: 17.06 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002505/0.7941, allocations: 159.8 kB / 1.093 GB, free: 16.93 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.7941, allocations: 86.94 kB / 1.093 GB, free: 16.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.7942, allocations: 1.109 kB / 1.093 GB, free: 16.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.601e-05/0.7942, allocations: 10.38 kB / 1.093 GB, free: 16.82 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.7943, allocations: 3.188 kB / 1.093 GB, free: 16.82 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.7943, allocations: 0 / 1.093 GB, free: 16.82 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.617e-05/0.7943, allocations: 86.7 kB / 1.093 GB, free: 16.74 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7943, allocations: 0 / 1.093 GB, free: 16.74 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002361/0.7946, allocations: 16.7 kB / 1.093 GB, free: 16.74 MB / 0.8731 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 (2): * Single equations (assignments): 2 * 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.0005606/0.7951, allocations: 0.7166 MB / 1.093 GB, free: 16.06 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000228/0.7954, allocations: 35.52 kB / 1.094 GB, free: 16.05 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.7954, allocations: 0 / 1.094 GB, free: 16.05 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 9.43e-05/0.7955, allocations: 33.5 kB / 1.094 GB, free: 16.04 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.7958, allocations: 2.297 kB / 1.094 GB, free: 16.04 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004085/0.7962, allocations: 141.1 kB / 1.094 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.7964, allocations: 0.6777 MB / 1.094 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.474e-05/0.7965, allocations: 2.328 kB / 1.094 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.846e-05/0.7965, allocations: 13.17 kB / 1.094 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.7965, allocations: 0 / 1.094 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.8133, allocations: 1.609 MB / 1.096 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.237/8.05, allocations: 11.75 kB / 1.096 GB, free: 14.78 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches