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.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: 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.001481/0.001481, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001517/0.001517, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.397/1.397, allocations: 222.9 MB / 241 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.7112 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 63.84 kB / 1.019 GB, free: 9.336 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8412/0.8427, allocations: 151.6 MB / 1.167 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.002234/0.845, allocations: 0.6023 MB / 1.168 GB, free: 3.203 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002274/0.8473, allocations: 1.457 MB / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.063e-05/0.8474, allocations: 0 / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.565e-05/0.8474, allocations: 0 / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.665e-05/0.8475, allocations: 4 kB / 1.169 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006523/0.8481, allocations: 144.6 kB / 1.169 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.652e-05/0.8482, allocations: 31.86 kB / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.066e-05/0.8483, allocations: 3.984 kB / 1.17 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.135e-05/0.8483, allocations: 23.98 kB / 1.17 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.187e-05/0.8484, allocations: 23.89 kB / 1.17 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.8485, allocations: 4 kB / 1.17 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000498/0.849, allocations: 311.4 kB / 1.17 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.034e-05/0.849, allocations: 7.984 kB / 1.17 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.197e-05/0.849, allocations: 15.92 kB / 1.17 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003476/0.8494, allocations: 179.7 kB / 1.17 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.8494, allocations: 4 kB / 1.17 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8494, allocations: 0 / 1.17 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.8494, allocations: 0 / 1.17 GB, free: 0.9922 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006237/0.8501, allocations: 371.3 kB / 1.17 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.8501, allocations: 8.922 kB / 1.17 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005046/0.8506, allocations: 72.75 kB / 1.171 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.8508, allocations: 164.3 kB / 1.171 GB, free: 316 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.8508, allocations: 384 / 1.171 GB, free: 316 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.8508, allocations: 4.375 kB / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.8511, allocations: 85.88 kB / 1.171 GB, free: 220 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.8511, allocations: 0 / 1.171 GB, free: 220 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.8512, allocations: 4 kB / 1.171 GB, free: 216 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.8512, allocations: 0 / 1.171 GB, free: 216 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.8515, allocations: 63.94 kB / 1.171 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002359/0.8517, allocations: 165.7 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006135/0.8523, allocations: 118.6 kB / 1.171 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.8525, allocations: 44.92 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004773/0.853, allocations: 157 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.853, allocations: 38.44 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.853, allocations: 0 / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of matching and sorting (n=5): time 0.00118/0.8542, allocations: 406.2 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.8543, allocations: 55.41 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.619e-05/0.8544, allocations: 89.86 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.8544, allocations: 29.7 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.007e-05/0.8545, allocations: 84.14 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.389e-05/0.8545, allocations: 17.56 kB / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.91e-05/0.8545, allocations: 21.72 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.8547, allocations: 319 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.8548, allocations: 31.95 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.855, allocations: 39.97 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.8553, allocations: 76.98 kB / 1.172 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.8553, allocations: 4 kB / 1.172 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003514/0.8557, allocations: 121.4 kB / 1.173 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.8557, allocations: 12 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.8557, allocations: 0 / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.8557, allocations: 0 / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.8559, allocations: 19.98 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.8559, allocations: 0 / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.486e-05/0.856, allocations: 11.98 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.856, allocations: 3.984 kB / 1.173 GB, free: 14.12 MB / 0.9044 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 9.106e-05/0.8561, allocations: 117.8 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.998e-05/0.8561, allocations: 7.938 kB / 1.173 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004644/0.8566, allocations: 133.4 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.8566, allocations: 4 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.8566, allocations: 4 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.8566, allocations: 3.984 kB / 1.173 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001407/0.8568, allocations: 165.6 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.8568, allocations: 0 / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.857, allocations: 27.92 kB / 1.173 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.857, allocations: 4 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.857, allocations: 3.984 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.857, allocations: 0 / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.857, allocations: 0 / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005515/0.8576, allocations: 185.2 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.444e-05/0.8577, allocations: 96.91 kB / 1.173 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.8577, allocations: 8 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.8578, allocations: 11.98 kB / 1.173 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.515e-05/0.8578, allocations: 8.047 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.8579, allocations: 4 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.645e-05/0.8579, allocations: 75.28 kB / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2e-07/0.8579, allocations: 4 kB / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002445/0.8582, allocations: 31.98 kB / 1.173 GB, free: 13.14 MB / 0.9044 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.0002285/0.8584, allocations: 123.2 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000388/0.8588, allocations: 91.89 kB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.8588, allocations: 0 / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.859, allocations: 47.97 kB / 1.174 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001572/0.8591, allocations: 3.781 kB / 1.174 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007003/0.8598, allocations: 211 kB / 1.174 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.8602, allocations: 0.6807 MB / 1.175 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.568e-05/0.8602, allocations: 11.44 kB / 1.175 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of SimCode: time 1.904e-06/0.8602, allocations: 0 / 1.175 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of Templates: time 0.003003/0.8632, allocations: 1.142 MB / 1.176 GB, free: 10.78 MB / 0.9044 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 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)