Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_9_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_9_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.001222/0.001222, allocations: 107.7 kB / 16.36 MB, free: 5.824 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.001219/0.001219, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.024/2.024, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 67.08 kB / 0.814 GB, free: 32.81 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.238, allocations: 140.4 MB / 0.9511 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001661/0.2397, allocations: 0.6015 MB / 0.9517 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001582/0.2412, allocations: 1.456 MB / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.75e-05/0.2413, allocations: 0 / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.164e-05/0.2413, allocations: 0 / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.474e-05/0.2413, allocations: 3.938 kB / 0.9531 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.2418, allocations: 139.5 kB / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.377e-05/0.2418, allocations: 35.91 kB / 0.9533 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.58e-05/0.2419, allocations: 0 / 0.9533 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.478e-05/0.2419, allocations: 19.92 kB / 0.9533 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.134e-05/0.242, allocations: 19.97 kB / 0.9533 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.242, allocations: 0 / 0.9533 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003918/0.2424, allocations: 319.3 kB / 0.9537 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.486e-05/0.2424, allocations: 7.922 kB / 0.9537 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.351e-05/0.2425, allocations: 11.98 kB / 0.9537 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.2427, allocations: 195.6 kB / 0.9539 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2427, allocations: 0 / 0.9539 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2427, allocations: 0 / 0.9539 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.2427, allocations: 0 / 0.9539 GB, free: 5.211 MB / 0.7325 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.0004461/0.2432, allocations: 363.4 kB / 0.9542 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.2432, allocations: 12.03 kB / 0.9542 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004148/0.2436, allocations: 64.84 kB / 0.9543 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.2438, allocations: 164.4 kB / 0.9544 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.2438, allocations: 4.375 kB / 0.9544 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.2438, allocations: 4.375 kB / 0.9544 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002372/0.2441, allocations: 81.88 kB / 0.9545 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.2441, allocations: 0 / 0.9545 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.2441, allocations: 4 kB / 0.9545 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2441, allocations: 0 / 0.9545 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002626/0.2444, allocations: 67.86 kB / 0.9546 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001749/0.2445, allocations: 169.6 kB / 0.9548 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005456/0.2451, allocations: 122.5 kB / 0.9549 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000141/0.2452, allocations: 44.92 kB / 0.9549 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004216/0.2457, allocations: 161 kB / 0.9551 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.2457, allocations: 34.5 kB / 0.9551 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.2457, allocations: 3.938 kB / 0.9551 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.001046/0.2468, allocations: 402.2 kB / 0.9555 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.2468, allocations: 55.41 kB / 0.9555 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.99e-05/0.2469, allocations: 93.86 kB / 0.9556 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.2469, allocations: 25.7 kB / 0.9557 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.632e-05/0.2469, allocations: 88.25 kB / 0.9557 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.247, allocations: 19.75 kB / 0.9558 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.447e-05/0.247, allocations: 17.72 kB / 0.9558 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.2471, allocations: 318.8 kB / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.2473, allocations: 35.97 kB / 0.9561 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.2474, allocations: 35.97 kB / 0.9561 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002602/0.2477, allocations: 80.73 kB / 0.9562 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.2477, allocations: 0 / 0.9562 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003194/0.248, allocations: 121.8 kB / 0.9563 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.248, allocations: 4 kB / 0.9563 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.248, allocations: 0 / 0.9563 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.2481, allocations: 0 / 0.9563 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.2482, allocations: 23.97 kB / 0.9564 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.2482, allocations: 4 kB / 0.9564 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.609e-05/0.2483, allocations: 16.31 kB / 0.9564 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.2483, allocations: 4 kB / 0.9564 GB, free: 2.332 MB / 0.7325 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 6.442e-05/0.2484, allocations: 109.8 kB / 0.9565 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.385e-05/0.2484, allocations: 3.938 kB / 0.9565 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004013/0.2488, allocations: 145 kB / 0.9566 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2488, allocations: 0 / 0.9566 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2488, allocations: 0 / 0.9566 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2488, allocations: 4 kB / 0.9566 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001348/0.249, allocations: 169.6 kB / 0.9568 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.249, allocations: 0 / 0.9568 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.2491, allocations: 27.91 kB / 0.9568 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.2491, allocations: 4 kB / 0.9568 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.2492, allocations: 4 kB / 0.9568 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2492, allocations: 0 / 0.9568 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2492, allocations: 0 / 0.9568 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005086/0.2497, allocations: 185 kB / 0.957 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.311e-05/0.2497, allocations: 85.03 kB / 0.9571 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.2498, allocations: 0 / 0.9571 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.2499, allocations: 20.03 kB / 0.9571 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.328e-05/0.2499, allocations: 11.94 kB / 0.9571 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.2499, allocations: 4 kB / 0.9571 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.62e-05/0.25, allocations: 75.28 kB / 0.9572 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.25, allocations: 0 / 0.9572 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002095/0.2502, allocations: 27.98 kB / 0.9572 GB, free: 1.371 MB / 0.7325 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.0001678/0.2504, allocations: 139.3 kB / 0.9574 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003363/0.2507, allocations: 83.98 kB / 0.9574 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2507, allocations: 8 kB / 0.9574 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.2509, allocations: 35.97 kB / 0.9575 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001334/0.251, allocations: 8 kB / 0.9575 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005232/0.2515, allocations: 185.4 kB / 0.9577 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.2518, allocations: 0.6805 MB / 0.9583 GB, free: 184 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.659e-05/0.2518, allocations: 20 kB / 0.9583 GB, free: 164 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.361e-05/0.2519, allocations: 15.42 kB / 0.9584 GB, free: 148 kB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.2519, allocations: 3.938 kB / 0.9584 GB, free: 144 kB / 0.7325 GB Notification: Performance of Templates: time 0.003001/0.2549, allocations: 1.151 MB / 0.9595 GB, free: 14.99 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches