Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7347/0.7347, allocations: 141.8 MB / 149.1 MB, free: 4.535 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 177.9 kB / 181.9 MB, free: 188 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 221.3 MB / 436 MB, free: 9.32 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009379/0.000938, allocations: 98.17 kB / 0.507 GB, free: 24.13 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00186/0.00186, allocations: 273.4 kB / 0.5884 GB, free: 12.36 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.083e-05/1.119e-05, allocations: 4 kB / 0.6759 GB, free: 2.723 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4625/0.4625, allocations: 82.77 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.5884, allocations: 108.6 MB / 0.8628 GB, free: 4.195 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003192/0.5888, allocations: 79.7 kB / 0.8629 GB, free: 4.121 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.0127/0.6015, allocations: 3.795 MB / 0.8666 GB, free: 384 kB / 0.5263 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.6016, allocations: 0 / 0.8666 GB, free: 384 kB / 0.5263 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.000497/0.6021, allocations: 366.2 kB / 0.8669 GB, free: 15.97 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.6021, allocations: 11.97 kB / 0.8669 GB, free: 15.96 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004182/0.6026, allocations: 71.92 kB / 0.867 GB, free: 15.89 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.6028, allocations: 167 kB / 0.8672 GB, free: 15.69 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.6028, allocations: 6.281 kB / 0.8672 GB, free: 15.68 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.8e-05/0.6029, allocations: 4 kB / 0.8672 GB, free: 15.68 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.647e-05/0.603, allocations: 19.98 kB / 0.8672 GB, free: 15.66 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.6031, allocations: 53.66 kB / 0.8672 GB, free: 15.6 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.6031, allocations: 0 / 0.8672 GB, free: 15.6 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.6031, allocations: 4 kB / 0.8672 GB, free: 15.6 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.6031, allocations: 0 / 0.8672 GB, free: 15.6 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002291/0.6034, allocations: 142.1 kB / 0.8674 GB, free: 15.42 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/0.6037, allocations: 54.61 kB / 0.8674 GB, free: 15.36 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.124e-05/0.6037, allocations: 20.94 kB / 0.8674 GB, free: 15.34 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001066/0.6038, allocations: 81.11 kB / 0.8675 GB, free: 15.24 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.6039, allocations: 39.09 kB / 0.8676 GB, free: 15.19 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=4): time 1.914e-06/0.6039, allocations: 0 / 0.8676 GB, free: 15.19 MB / 0.5419 GB Notification: Performance of matching and sorting (n=5): time 0.001414/0.6053, allocations: 438 kB / 0.868 GB, free: 14.71 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.6053, allocations: 55.41 kB / 0.868 GB, free: 14.64 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.591e-05/0.6054, allocations: 93 kB / 0.8681 GB, free: 14.55 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.6054, allocations: 25.7 kB / 0.8681 GB, free: 14.52 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.064e-05/0.6055, allocations: 80.14 kB / 0.8682 GB, free: 14.43 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 3.414e-05/0.6055, allocations: 23.64 kB / 0.8682 GB, free: 14.41 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-06/0.6055, allocations: 0 / 0.8682 GB, free: 14.41 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.6057, allocations: 314.8 kB / 0.8685 GB, free: 14.09 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.504e-05/0.6057, allocations: 12 kB / 0.8686 GB, free: 14.08 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.957e-05/0.6058, allocations: 12.12 kB / 0.8686 GB, free: 14.07 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.6061, allocations: 71.89 kB / 0.8686 GB, free: 14 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.6061, allocations: 0 / 0.8686 GB, free: 14 MB / 0.5419 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003885/0.6065, allocations: 123.2 kB / 0.8688 GB, free: 13.87 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.6065, allocations: 4 kB / 0.8688 GB, free: 13.87 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.6065, allocations: 4 kB / 0.8688 GB, free: 13.86 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.6065, allocations: 4.156 kB / 0.8688 GB, free: 13.86 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.6067, allocations: 31.97 kB / 0.8688 GB, free: 13.83 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.6067, allocations: 4 kB / 0.8688 GB, free: 13.82 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.6068, allocations: 15.98 kB / 0.8688 GB, free: 13.81 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.6069, allocations: 0 / 0.8688 GB, free: 13.81 MB / 0.5419 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.911e-05/0.607, allocations: 113 kB / 0.8689 GB, free: 13.69 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.607, allocations: 7.844 kB / 0.8689 GB, free: 13.68 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004989/0.6075, allocations: 147.6 kB / 0.8691 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.6075, allocations: 0 / 0.8691 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.6075, allocations: 0 / 0.8691 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.6075, allocations: 0 / 0.8691 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.6077, allocations: 146.2 kB / 0.8692 GB, free: 13.36 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.6077, allocations: 0 / 0.8692 GB, free: 13.36 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.6078, allocations: 31.97 kB / 0.8692 GB, free: 13.33 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.6078, allocations: 4 kB / 0.8692 GB, free: 13.32 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.6079, allocations: 7.906 kB / 0.8693 GB, free: 13.32 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.6079, allocations: 0 / 0.8693 GB, free: 13.32 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.6079, allocations: 3.359 kB / 0.8693 GB, free: 13.32 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004674/0.6084, allocations: 168.9 kB / 0.8694 GB, free: 13.13 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.668e-05/0.6085, allocations: 85.09 kB / 0.8695 GB, free: 13.03 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.6085, allocations: 3.984 kB / 0.8695 GB, free: 13.03 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.6086, allocations: 20.05 kB / 0.8695 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.546e-05/0.6087, allocations: 0 / 0.8695 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.6087, allocations: 7.938 kB / 0.8695 GB, free: 13 MB / 0.5419 GB Notification: Performance of sort global known variables: time 4.457e-05/0.6087, allocations: 79.34 kB / 0.8696 GB, free: 12.92 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002507/0.609, allocations: 43.92 kB / 0.8696 GB, free: 12.88 MB / 0.5419 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002305/0.6092, allocations: 139.3 kB / 0.8698 GB, free: 12.73 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001359/0.6094, allocations: 40.08 kB / 0.8698 GB, free: 12.69 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.6094, allocations: 0 / 0.8698 GB, free: 12.69 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 4.578e-05/0.6094, allocations: 23.94 kB / 0.8698 GB, free: 12.67 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001123/0.6095, allocations: 7.094 kB / 0.8698 GB, free: 12.66 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005269/0.6101, allocations: 136.6 kB / 0.87 GB, free: 12.5 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000372/0.6105, allocations: 0.7075 MB / 0.8707 GB, free: 11.77 MB / 0.5419 GB Notification: Performance of SimCode: time 2.4e-07/0.6105, allocations: 0 / 0.8707 GB, free: 11.77 MB / 0.5419 GB Notification: Performance of Templates: time 0.003535/0.614, allocations: 1.302 MB / 0.8719 GB, free: 10.5 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)