Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",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.00171/0.00171, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002504/0.002504, allocations: 193.8 kB / 16.25 MB, free: 6.629 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.569/1.569, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.632/3.632, allocations: 461.9 MB / 0.7344 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 65.39 kB / 0.8987 GB, free: 37.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.413, allocations: 157.4 MB / 1.052 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.002628/0.4157, allocations: 0.6697 MB / 1.053 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009213/0.4167, allocations: 342.8 kB / 1.053 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.615e-05/0.4167, allocations: 0 / 1.053 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.844e-05/0.4167, allocations: 0 / 1.053 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.012e-05/0.4168, allocations: 7.938 kB / 1.053 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006566/0.4175, allocations: 99.69 kB / 1.054 GB, free: 7.48 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.909e-05/0.4175, allocations: 12 kB / 1.054 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.081e-05/0.4176, allocations: 0 / 1.054 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.248e-05/0.4176, allocations: 4 kB / 1.054 GB, free: 7.465 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.493e-05/0.4177, allocations: 7.922 kB / 1.054 GB, free: 7.457 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.4177, allocations: 0 / 1.054 GB, free: 7.457 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005773/0.4183, allocations: 283.6 kB / 1.054 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.4183, allocations: 0 / 1.054 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.522e-05/0.4184, allocations: 8 kB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.4187, allocations: 91.78 kB / 1.054 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4187, allocations: 0 / 1.054 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4187, allocations: 0 / 1.054 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.434e-05/0.4187, allocations: 3.938 kB / 1.054 GB, free: 7.078 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005365/0.4192, allocations: 339.6 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.4193, allocations: 12.62 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.29e-05/0.4194, allocations: 30.75 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.004e-05/0.4194, allocations: 4.938 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002033/0.4197, allocations: 176.5 kB / 1.054 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.4197, allocations: 4.375 kB / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/0.4197, allocations: 384 / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.4198, allocations: 34.27 kB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.4199, allocations: 3.938 kB / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.4199, allocations: 0 / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.4199, allocations: 0 / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.507e-05/0.4199, allocations: 7.984 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002643/0.4202, allocations: 153.7 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.65e-05/0.4203, allocations: 26.53 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.912e-05/0.4203, allocations: 8.922 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001041/0.4214, allocations: 457.4 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.918e-05/0.4215, allocations: 42.55 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 2.394e-06/0.4215, allocations: 0 / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0007082/0.4222, allocations: 250.2 kB / 1.055 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.4222, allocations: 55.62 kB / 1.055 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.4224, allocations: 97.86 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.4224, allocations: 25.7 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.12e-05/0.4225, allocations: 80.14 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.4225, allocations: 7.812 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-05/0.4226, allocations: 21.7 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.4227, allocations: 314.8 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.804e-05/0.4228, allocations: 4.125 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.028e-05/0.4228, allocations: 33.67 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.929e-05/0.4229, allocations: 21.72 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.4229, allocations: 0 / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001528/0.4231, allocations: 49.64 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.4231, allocations: 13.64 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.4232, allocations: 7.984 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.4232, allocations: 4.062 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.131e-05/0.4233, allocations: 8 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.4233, allocations: 4 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.663e-05/0.4233, allocations: 0 / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.4233, allocations: 0 / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 0.0001112/0.4235, allocations: 111.4 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.4235, allocations: 3.938 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001893/0.4237, allocations: 69.05 kB / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.4237, allocations: 0 / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4237, allocations: 0 / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.4237, allocations: 0 / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002057/0.424, allocations: 149.7 kB / 1.056 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.424, allocations: 0 / 1.056 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.756e-05/0.4241, allocations: 12 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.4241, allocations: 3.938 kB / 1.056 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.4241, allocations: 4 kB / 1.056 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4241, allocations: 0 / 1.056 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4241, allocations: 4 kB / 1.056 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002029/0.4243, allocations: 85.02 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.107e-05/0.4244, allocations: 88.95 kB / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.4244, allocations: 0 / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.322e-05/0.4245, allocations: 0 / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.958e-05/0.4245, allocations: 4 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.4245, allocations: 0 / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.605e-05/0.4246, allocations: 83.33 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4246, allocations: 0 / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003394/0.4249, allocations: 24 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (3): * Single equations (assignments): 3 * 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.0007413/0.4257, allocations: 0.6437 MB / 1.057 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001146/0.4258, allocations: 16.14 kB / 1.057 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4258, allocations: 8.062 kB / 1.057 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.913e-05/0.4259, allocations: 8 kB / 1.057 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.4261, allocations: 0 / 1.057 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.4276, allocations: 1.139 MB / 1.058 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.428, allocations: 0.6768 MB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.753e-05/0.4281, allocations: 7.938 kB / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.371e-05/0.4282, allocations: 11.44 kB / 1.059 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of SimCode: time 6.51e-07/0.4282, allocations: 0 / 1.059 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02297/0.4512, allocations: 1.644 MB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004219/0.4517, allocations: 246.5 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/2.572, allocations: 0.75 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,x,y,der(x),der(y) Variables in the result:delta,der(x),der(y),n,time,x,y