Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_10_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.007261/0.007261, 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.001642/0.001642, allocations: 192.9 kB / 16.67 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.442/2.442, allocations: 437 MB / 0.7105 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 60.12 kB / 1.018 GB, free: 9.836 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.874/0.8755, allocations: 151.6 MB / 1.166 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001823/0.8773, allocations: 0.5922 MB / 1.167 GB, free: 3.258 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0007183/0.8781, allocations: 352.6 kB / 1.167 GB, free: 2.914 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.404e-05/0.8781, allocations: 0 / 1.167 GB, free: 2.914 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.331e-05/0.8781, allocations: 0 / 1.167 GB, free: 2.914 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.553e-05/0.8782, allocations: 0 / 1.167 GB, free: 2.914 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005567/0.8788, allocations: 121.4 kB / 1.167 GB, free: 2.797 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.512e-05/0.8788, allocations: 11.98 kB / 1.167 GB, free: 2.785 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.976e-05/0.8789, allocations: 0 / 1.167 GB, free: 2.785 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.968e-05/0.8789, allocations: 4 kB / 1.167 GB, free: 2.781 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.254e-05/0.879, allocations: 7.922 kB / 1.167 GB, free: 2.773 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.297e-05/0.879, allocations: 0 / 1.167 GB, free: 2.773 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000429/0.8794, allocations: 275.7 kB / 1.168 GB, free: 2.504 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.57e-05/0.8795, allocations: 7.984 kB / 1.168 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.355e-05/0.8795, allocations: 8 kB / 1.168 GB, free: 2.488 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.8797, allocations: 91.78 kB / 1.168 GB, free: 2.398 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.8797, allocations: 0 / 1.168 GB, free: 2.398 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8797, allocations: 0 / 1.168 GB, free: 2.398 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.8797, allocations: 4 kB / 1.168 GB, free: 2.395 MB / 0.8887 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.0003562/0.8801, allocations: 335.6 kB / 1.168 GB, free: 2.016 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.8801, allocations: 12.92 kB / 1.168 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.945e-05/0.8802, allocations: 30.75 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.124e-05/0.8802, allocations: 0.9375 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.8803, allocations: 182.5 kB / 1.168 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.8804, allocations: 384 / 1.168 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.982e-05/0.8804, allocations: 384 / 1.168 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.302e-05/0.8805, allocations: 34.27 kB / 1.168 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.8805, allocations: 3.938 kB / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-06/0.8805, allocations: 0 / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.8805, allocations: 0 / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.383e-05/0.8805, allocations: 7.984 kB / 1.168 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001568/0.8807, allocations: 153.7 kB / 1.168 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 4.93e-05/0.8808, allocations: 30.53 kB / 1.168 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.158e-05/0.8808, allocations: 11.39 kB / 1.168 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007107/0.8815, allocations: 457.5 kB / 1.169 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.8816, allocations: 42.56 kB / 1.169 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.8816, allocations: 3.938 kB / 1.169 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0005326/0.8821, allocations: 250.3 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.8821, allocations: 55.34 kB / 1.169 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.222e-05/0.8822, allocations: 102.1 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.8822, allocations: 25.7 kB / 1.169 GB, free: 360 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.193e-05/0.8823, allocations: 80.14 kB / 1.169 GB, free: 276 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.8823, allocations: 15.75 kB / 1.169 GB, free: 260 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/0.8824, allocations: 17.7 kB / 1.169 GB, free: 236 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.8825, allocations: 314.8 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.246e-05/0.8825, allocations: 8 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.955e-05/0.8825, allocations: 21.83 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.141e-05/0.8826, allocations: 25.66 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.8826, allocations: 0 / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001049/0.8827, allocations: 53.62 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.8827, allocations: 11.94 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.8828, allocations: 0 / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.8828, allocations: 0 / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.169e-05/0.8828, allocations: 12.06 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.8829, allocations: 4 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.064e-05/0.8829, allocations: 0 / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.8829, allocations: 0 / 1.17 GB, free: 15.76 MB / 0.9044 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 7.795e-05/0.883, allocations: 109.8 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.612e-05/0.883, allocations: 3.938 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.8832, allocations: 61.11 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.8832, allocations: 4 kB / 1.17 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.8832, allocations: 0 / 1.17 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.8832, allocations: 4 kB / 1.17 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001135/0.8833, allocations: 149.7 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.8833, allocations: 0 / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.945e-05/0.8834, allocations: 8 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.8834, allocations: 3.938 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.8834, allocations: 0 / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.8834, allocations: 0 / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8834, allocations: 0 / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001562/0.8836, allocations: 85.02 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.398e-05/0.8836, allocations: 88.98 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.8837, allocations: 3.938 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.771e-05/0.8837, allocations: 0 / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.513e-05/0.8837, allocations: 4.031 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.8837, allocations: 7.922 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.213e-05/0.8838, allocations: 79.28 kB / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8838, allocations: 160 / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002253/0.884, allocations: 24 kB / 1.17 GB, free: 15.03 MB / 0.9044 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.0005335/0.8846, allocations: 0.646 MB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 9.95e-05/0.8847, allocations: 19.92 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.8847, allocations: 0 / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.961e-05/0.8847, allocations: 12.47 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001562/0.8849, allocations: 5.125 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.8859, allocations: 1.135 MB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.8862, allocations: 0.6768 MB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.038e-05/0.8862, allocations: 4 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.295e-05/0.8862, allocations: 7.438 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of SimCode: time 7.41e-07/0.8863, allocations: 4 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02104/0.9073, allocations: 1.746 MB / 1.175 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/8.637, allocations: 7.891 kB / 1.175 GB, free: 10.77 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,x,y,der(x),der(y) Variables in the result:delta,der(x),der(y),n,time,x,y