Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 112.5 kB / 16.37 MB, free: 6.012 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.001137/0.001137, allocations: 189.5 kB / 17.31 MB, free: 5.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.196/1.196, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.19/2.19, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 72.2 kB / 0.8707 GB, free: 1.438 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.25, allocations: 151.6 MB / 1.019 GB, free: 9.84 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001565/0.2516, allocations: 0.6003 MB / 1.019 GB, free: 9.234 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00158/0.2532, allocations: 1.452 MB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.16e-05/0.2532, allocations: 4 kB / 1.021 GB, free: 7.762 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.2532, allocations: 0 / 1.021 GB, free: 7.762 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.414e-05/0.2533, allocations: 3.938 kB / 1.021 GB, free: 7.758 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.2537, allocations: 136.2 kB / 1.021 GB, free: 7.625 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 5.991e-05/0.2538, allocations: 31.97 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.92e-05/0.2538, allocations: 7.938 kB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.813e-05/0.2539, allocations: 15.98 kB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.797e-05/0.2539, allocations: 31.88 kB / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.254, allocations: 4 kB / 1.021 GB, free: 7.535 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004372/0.2544, allocations: 311.4 kB / 1.021 GB, free: 7.23 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.762e-05/0.2544, allocations: 11.97 kB / 1.021 GB, free: 7.219 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.439e-05/0.2545, allocations: 11.92 kB / 1.021 GB, free: 7.207 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.2547, allocations: 187.6 kB / 1.022 GB, free: 7.023 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2547, allocations: 0 / 1.022 GB, free: 7.023 MB / 0.795 GB Notification: Performance of FrontEnd: time 6.102e-06/0.2547, allocations: 4 kB / 1.022 GB, free: 7.02 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.2548, allocations: 4 kB / 1.022 GB, free: 7.016 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004615/0.2552, allocations: 363.5 kB / 1.022 GB, free: 6.613 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.2553, allocations: 8.922 kB / 1.022 GB, free: 6.605 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004196/0.2557, allocations: 68.84 kB / 1.022 GB, free: 6.539 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.533e-05/0.2558, allocations: 164.3 kB / 1.022 GB, free: 6.34 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.2558, allocations: 384 / 1.022 GB, free: 6.34 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.2558, allocations: 12.28 kB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002278/0.2561, allocations: 77.95 kB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.2561, allocations: 3.984 kB / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.2561, allocations: 0 / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.2561, allocations: 0 / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.2564, allocations: 63.94 kB / 1.022 GB, free: 6.18 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001579/0.2565, allocations: 161.7 kB / 1.022 GB, free: 5.973 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005422/0.2571, allocations: 130.5 kB / 1.023 GB, free: 5.836 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.2572, allocations: 40.92 kB / 1.023 GB, free: 5.793 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003945/0.2576, allocations: 149 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.2577, allocations: 38.5 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.2577, allocations: 0 / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of matching and sorting (n=5): time 0.001058/0.2587, allocations: 410.1 kB / 1.023 GB, free: 5.129 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.2588, allocations: 51.41 kB / 1.023 GB, free: 5.066 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.519e-05/0.2589, allocations: 93.86 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.2589, allocations: 29.7 kB / 1.023 GB, free: 4.93 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.934e-05/0.2589, allocations: 84.08 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.259, allocations: 15.75 kB / 1.023 GB, free: 4.828 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.259, allocations: 29.83 kB / 1.023 GB, free: 4.793 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.2591, allocations: 314.8 kB / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.2593, allocations: 31.97 kB / 1.024 GB, free: 4.445 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.2594, allocations: 43.95 kB / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.2597, allocations: 76.73 kB / 1.024 GB, free: 4.324 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/0.2597, allocations: 0 / 1.024 GB, free: 4.324 MB / 0.795 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003228/0.26, allocations: 113.6 kB / 1.024 GB, free: 4.207 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.26, allocations: 11.94 kB / 1.024 GB, free: 4.195 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.26, allocations: 256 / 1.024 GB, free: 4.195 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.2601, allocations: 3.984 kB / 1.024 GB, free: 4.191 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.2602, allocations: 23.98 kB / 1.024 GB, free: 4.168 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.2602, allocations: 0 / 1.024 GB, free: 4.168 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.716e-05/0.2603, allocations: 15.98 kB / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.2603, allocations: 4 kB / 1.024 GB, free: 4.148 MB / 0.795 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 (6): * Single equations (assignments): 6 * 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.216e-05/0.2604, allocations: 120.2 kB / 1.024 GB, free: 4.023 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.2604, allocations: 7.844 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004146/0.2608, allocations: 133.2 kB / 1.024 GB, free: 3.875 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2609, allocations: 336 / 1.024 GB, free: 3.875 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.2609, allocations: 3.984 kB / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2609, allocations: 0 / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001273/0.261, allocations: 169.6 kB / 1.024 GB, free: 3.656 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.261, allocations: 4 kB / 1.024 GB, free: 3.652 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.2612, allocations: 27.91 kB / 1.025 GB, free: 3.625 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2612, allocations: 0 / 1.025 GB, free: 3.625 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.2612, allocations: 0 / 1.025 GB, free: 3.625 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2612, allocations: 7.938 kB / 1.025 GB, free: 3.617 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2612, allocations: 0 / 1.025 GB, free: 3.617 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004911/0.2617, allocations: 185 kB / 1.025 GB, free: 3.418 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.23e-05/0.2618, allocations: 89.06 kB / 1.025 GB, free: 3.312 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.2618, allocations: 0 / 1.025 GB, free: 3.312 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.2619, allocations: 16.05 kB / 1.025 GB, free: 3.297 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.29e-05/0.2619, allocations: 7.984 kB / 1.025 GB, free: 3.289 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.2619, allocations: 4 kB / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.045e-05/0.262, allocations: 83.22 kB / 1.025 GB, free: 3.203 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.262, allocations: 0 / 1.025 GB, free: 3.203 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002091/0.2622, allocations: 28 kB / 1.025 GB, free: 3.176 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y_comp) * 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 (6): * Single equations (assignments): 6 * 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.0001846/0.2624, allocations: 123.2 kB / 1.025 GB, free: 3.047 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00037/0.2628, allocations: 88.08 kB / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2628, allocations: 0 / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.2629, allocations: 48.08 kB / 1.025 GB, free: 2.914 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.2631, allocations: 4 kB / 1.025 GB, free: 2.91 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005512/0.2636, allocations: 197.4 kB / 1.025 GB, free: 2.691 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.2639, allocations: 0.6768 MB / 1.026 GB, free: 1.988 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 8.298e-05/0.2639, allocations: 27.91 kB / 1.026 GB, free: 1.961 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.264, allocations: 11.44 kB / 1.026 GB, free: 1.953 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.264, allocations: 4 kB / 1.026 GB, free: 1.949 MB / 0.795 GB Notification: Performance of Templates: time 0.003044/0.267, allocations: 1.144 MB / 1.027 GB, free: 0.8086 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches