Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001661/0.001661, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001927/0.001928, allocations: 193.5 kB / 16.14 MB, free: 6.656 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.432/1.432, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.935/2.935, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 68.41 kB / 0.9114 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3277, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.002179/0.3299, allocations: 0.6658 MB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002097/0.3321, allocations: 1.48 MB / 1.07 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.625e-05/0.3321, allocations: 4 kB / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.371e-05/0.3322, allocations: 0 / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.943e-05/0.3322, allocations: 0 / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004663/0.3327, allocations: 111.7 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.456e-05/0.3327, allocations: 31.97 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.843e-05/0.3328, allocations: 4 kB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.779e-05/0.3328, allocations: 15.92 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.8e-05/0.3329, allocations: 27.91 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.3329, allocations: 0 / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004641/0.3334, allocations: 315.3 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.242e-05/0.3334, allocations: 7.984 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.189e-05/0.3335, allocations: 15.91 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003459/0.3338, allocations: 179.7 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3338, allocations: 0 / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3339, allocations: 7.984 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.3339, allocations: 0 / 1.07 GB, free: 8.02 MB / 0.8262 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.0005401/0.3344, allocations: 369.3 kB / 1.071 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3345, allocations: 8.031 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004861/0.3349, allocations: 72.75 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.3351, allocations: 160.4 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.553e-05/0.3351, allocations: 4.375 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.3351, allocations: 4.375 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.3354, allocations: 85.88 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3354, allocations: 0 / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.3354, allocations: 0 / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3354, allocations: 0 / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003045/0.3358, allocations: 71.92 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001936/0.336, allocations: 165.7 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00059/0.3366, allocations: 122.6 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.3367, allocations: 40.92 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004851/0.3372, allocations: 153 kB / 1.071 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.3373, allocations: 46.38 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.463e-06/0.3373, allocations: 0 / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.001347/0.3386, allocations: 402.5 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.3387, allocations: 59.41 kB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.867e-05/0.3388, allocations: 89.86 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.934e-05/0.3388, allocations: 25.7 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.3389, allocations: 84.14 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.507e-05/0.3389, allocations: 23.86 kB / 1.072 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-05/0.339, allocations: 21.72 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3391, allocations: 314.8 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.3393, allocations: 31.97 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.3395, allocations: 39.97 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003132/0.3398, allocations: 72.8 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.3398, allocations: 0 / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003718/0.3402, allocations: 125.4 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.3402, allocations: 5.562 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.3402, allocations: 7.938 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.3402, allocations: 0 / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.3404, allocations: 23.97 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.086e-06/0.3404, allocations: 0 / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.3405, allocations: 19.97 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.3405, allocations: 4 kB / 1.073 GB, free: 5.137 MB / 0.8262 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 8.857e-05/0.3406, allocations: 113.8 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.3406, allocations: 3.938 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004789/0.3411, allocations: 137.3 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.3411, allocations: 4 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.3412, allocations: 4.062 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3412, allocations: 0 / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.3413, allocations: 165.7 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3413, allocations: 0 / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.3415, allocations: 23.92 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.3415, allocations: 7.984 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.3416, allocations: 0 / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3416, allocations: 4 kB / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3416, allocations: 0 / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005728/0.3421, allocations: 185 kB / 1.073 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.355e-05/0.3422, allocations: 92.97 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.3423, allocations: 0 / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.3424, allocations: 23.97 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.781e-05/0.3424, allocations: 4 kB / 1.074 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.3424, allocations: 4 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.694e-05/0.3425, allocations: 75.28 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.31e-07/0.3425, allocations: 0 / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002344/0.3427, allocations: 31.98 kB / 1.074 GB, free: 4.172 MB / 0.8262 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.0002472/0.343, allocations: 131.2 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000376/0.3434, allocations: 87.95 kB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3434, allocations: 0 / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001777/0.3436, allocations: 43.97 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.3437, allocations: 14.55 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006434/0.3444, allocations: 187.5 kB / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.3446, allocations: 0.6809 MB / 1.075 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001142/0.3448, allocations: 16 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.396e-05/0.3448, allocations: 11.44 kB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.3448, allocations: 0 / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of Templates: time 0.0036/0.3484, allocations: 1.131 MB / 1.076 GB, free: 1.812 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)