Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_latest_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_latest_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.00152/0.00152, allocations: 103.7 kB / 16.27 MB, free: 5.98 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.001792/0.001792, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.327/1.327, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.613/2.613, allocations: 469.4 MB / 0.7427 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.16 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3165, allocations: 159.1 MB / 1.064 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.002069/0.3186, allocations: 0.6087 MB / 1.065 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001815/0.3204, allocations: 1.454 MB / 1.066 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.58e-05/0.3205, allocations: 0 / 1.066 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.62e-05/0.3205, allocations: 3.938 kB / 1.066 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.572e-05/0.3206, allocations: 0 / 1.066 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004902/0.3211, allocations: 139.4 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.611e-05/0.3211, allocations: 27.97 kB / 1.066 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.599e-05/0.3212, allocations: 4 kB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.968e-05/0.3212, allocations: 15.98 kB / 1.066 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.508e-05/0.3213, allocations: 31.89 kB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.3213, allocations: 0 / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000435/0.3218, allocations: 307.4 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.3218, allocations: 19.97 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.755e-05/0.3218, allocations: 11.92 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.3221, allocations: 187.7 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3221, allocations: 0 / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3222, allocations: 7.938 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.3222, allocations: 0 / 1.067 GB, free: 12.2 MB / 0.8419 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.0005343/0.3227, allocations: 363.7 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3228, allocations: 8.031 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004657/0.3232, allocations: 68.84 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.3234, allocations: 168.3 kB / 1.068 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.3234, allocations: 4.375 kB / 1.068 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.3234, allocations: 4.359 kB / 1.068 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000247/0.3237, allocations: 73.95 kB / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.3237, allocations: 0 / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.3237, allocations: 4 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3237, allocations: 4 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.324, allocations: 67.92 kB / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000193/0.3242, allocations: 161.7 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006113/0.3248, allocations: 122.5 kB / 1.068 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.325, allocations: 52.89 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004695/0.3255, allocations: 153 kB / 1.068 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.3255, allocations: 34.5 kB / 1.068 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 1.282e-06/0.3255, allocations: 4 kB / 1.068 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5): time 0.0012/0.3268, allocations: 402.2 kB / 1.069 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.3268, allocations: 51.41 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.817e-05/0.3269, allocations: 97.84 kB / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.3269, allocations: 33.7 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 2.996e-05/0.3269, allocations: 80.14 kB / 1.069 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.327, allocations: 11.75 kB / 1.069 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.327, allocations: 29.64 kB / 1.069 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3272, allocations: 318.8 kB / 1.069 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.3273, allocations: 40.03 kB / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.3275, allocations: 31.97 kB / 1.069 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002977/0.3278, allocations: 80.73 kB / 1.069 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.3278, allocations: 4 kB / 1.069 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003672/0.3282, allocations: 113.6 kB / 1.069 GB, free: 9.383 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.3282, allocations: 10.19 kB / 1.069 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3282, allocations: 0 / 1.069 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.3282, allocations: 0 / 1.069 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.3284, allocations: 31.91 kB / 1.069 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.3284, allocations: 0 / 1.069 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.975e-05/0.3285, allocations: 11.98 kB / 1.069 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.3285, allocations: 4 kB / 1.069 GB, free: 9.328 MB / 0.8419 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.787e-05/0.3286, allocations: 109.8 kB / 1.07 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.936e-05/0.3286, allocations: 7.844 kB / 1.07 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004489/0.3291, allocations: 137.4 kB / 1.07 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3291, allocations: 0 / 1.07 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3291, allocations: 4.062 kB / 1.07 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3291, allocations: 0 / 1.07 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.3293, allocations: 161.7 kB / 1.07 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.3293, allocations: 4 kB / 1.07 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.3294, allocations: 39.84 kB / 1.07 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3295, allocations: 0 / 1.07 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.3295, allocations: 0 / 1.07 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.3295, allocations: 0 / 1.07 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3295, allocations: 0 / 1.07 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005643/0.33, allocations: 181 kB / 1.07 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.679e-05/0.3301, allocations: 96.97 kB / 1.07 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.3302, allocations: 3.984 kB / 1.07 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.3303, allocations: 11.98 kB / 1.07 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.565e-05/0.3303, allocations: 4 kB / 1.07 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.3303, allocations: 0 / 1.07 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.658e-05/0.3304, allocations: 83.27 kB / 1.07 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3304, allocations: 8.094 kB / 1.07 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002234/0.3306, allocations: 28 kB / 1.07 GB, free: 8.363 MB / 0.8419 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.0002163/0.3308, allocations: 131.7 kB / 1.07 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003749/0.3312, allocations: 87.92 kB / 1.071 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3312, allocations: 0 / 1.071 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.3314, allocations: 43.91 kB / 1.071 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.3316, allocations: 13.42 kB / 1.071 GB, free: 8.082 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006743/0.3322, allocations: 211.3 kB / 1.071 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.3325, allocations: 0.6807 MB / 1.071 GB, free: 7.137 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.056e-05/0.3326, allocations: 15.42 kB / 1.071 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of SimCode: time 3.71e-07/0.3326, allocations: 0 / 1.071 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of Templates: time 0.002875/0.3355, allocations: 1.125 MB / 1.073 GB, free: 5.996 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)