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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9199/0.9199, allocations: 141.8 MB / 149.3 MB, free: 9.223 MB / 122.7 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: 179.7 kB / 182.2 MB, free: 9.457 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.584/1.584, allocations: 221.5 MB / 436.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 91.66 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001882/0.001882, allocations: 270.9 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.424e-05/2.426e-05, allocations: 8 kB / 0.6766 GB, free: 12.71 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.504/0.504, allocations: 82.78 MB / 0.7575 GB, free: 31.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1644/0.6685, allocations: 108.7 MB / 0.8636 GB, free: 3.086 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/0.6689, allocations: 87.92 kB / 0.8637 GB, free: 3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01252/0.6814, allocations: 4.097 MB / 0.8677 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.884e-06/0.6815, allocations: 0 / 0.8677 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.6815, allocations: 0 / 0.8677 GB, free: 14.91 MB / 0.5417 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.0004415/0.6819, allocations: 370.3 kB / 0.868 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.682, allocations: 8.031 kB / 0.868 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003818/0.6824, allocations: 63.94 kB / 0.8681 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.6825, allocations: 167.1 kB / 0.8683 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.6826, allocations: 3.953 kB / 0.8683 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.6826, allocations: 7.875 kB / 0.8683 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.029e-05/0.6827, allocations: 20 kB / 0.8683 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.6828, allocations: 53.59 kB / 0.8683 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.6828, allocations: 0 / 0.8683 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.6829, allocations: 0 / 0.8683 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.6829, allocations: 0 / 0.8683 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001841/0.6831, allocations: 146.1 kB / 0.8685 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.6833, allocations: 50.67 kB / 0.8685 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.644e-05/0.6834, allocations: 24.94 kB / 0.8686 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.896e-05/0.6834, allocations: 7.953 kB / 0.8686 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.6834, allocations: 31.09 kB / 0.8686 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=4): time 2.996e-06/0.6834, allocations: 3.984 kB / 0.8686 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5): time 0.001246/0.6847, allocations: 430.1 kB / 0.869 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.6848, allocations: 51.41 kB / 0.8691 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.748e-05/0.6848, allocations: 89 kB / 0.8691 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.6849, allocations: 25.7 kB / 0.8692 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.281e-05/0.6849, allocations: 88.14 kB / 0.8692 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.6849, allocations: 15.73 kB / 0.8693 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.534e-06/0.685, allocations: 0 / 0.8693 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.6851, allocations: 314.8 kB / 0.8696 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.043e-05/0.6851, allocations: 8 kB / 0.8696 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.365e-05/0.6852, allocations: 20 kB / 0.8696 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.6854, allocations: 68.05 kB / 0.8697 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.6854, allocations: 4 kB / 0.8697 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000326/0.6858, allocations: 113.6 kB / 0.8698 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.6858, allocations: 7.953 kB / 0.8698 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.6858, allocations: 0 / 0.8698 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.6858, allocations: 0 / 0.8698 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.686, allocations: 27.97 kB / 0.8698 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.686, allocations: 0 / 0.8698 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.6861, allocations: 19.98 kB / 0.8698 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.6861, allocations: 0 / 0.8698 GB, free: 12.47 MB / 0.5417 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.739e-05/0.6862, allocations: 109 kB / 0.8699 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003355/0.6866, allocations: 113.5 kB / 0.87 GB, free: 12.24 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.655e-05/0.6866, allocations: 15.8 kB / 0.87 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000408/0.687, allocations: 129.8 kB / 0.8702 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.687, allocations: 0 / 0.8702 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.687, allocations: 7.938 kB / 0.8702 GB, free: 12.08 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.687, allocations: 0 / 0.8702 GB, free: 12.08 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000135/0.6872, allocations: 146.2 kB / 0.8703 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.6872, allocations: 4 kB / 0.8703 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.6873, allocations: 27.92 kB / 0.8703 GB, free: 11.87 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.6874, allocations: 3.953 kB / 0.8703 GB, free: 11.87 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.6874, allocations: 0 / 0.8703 GB, free: 11.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.6874, allocations: 4.297 kB / 0.8704 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.6874, allocations: 0 / 0.8704 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004356/0.6878, allocations: 165 kB / 0.8705 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.85e-05/0.6879, allocations: 89.03 kB / 0.8706 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.6879, allocations: 3.953 kB / 0.8706 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.6881, allocations: 20.05 kB / 0.8706 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.142e-05/0.6881, allocations: 3.984 kB / 0.8706 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.6881, allocations: 8 kB / 0.8706 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.3e-05/0.6882, allocations: 75.28 kB / 0.8707 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6882, allocations: 0 / 0.8707 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002234/0.6884, allocations: 39.94 kB / 0.8707 GB, free: 11.43 MB / 0.5417 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.0008361/0.6892, allocations: 0.7353 MB / 0.8715 GB, free: 10.67 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001219/0.6894, allocations: 36 kB / 0.8715 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.6894, allocations: 4.062 kB / 0.8715 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.315e-05/0.6894, allocations: 27.92 kB / 0.8715 GB, free: 10.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000117/0.6896, allocations: 3.953 kB / 0.8715 GB, free: 10.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005921/0.6902, allocations: 179.4 kB / 0.8717 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.6905, allocations: 0.6807 MB / 0.8724 GB, free: 9.672 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.6906, allocations: 15.98 kB / 0.8724 GB, free: 9.656 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.516e-05/0.6907, allocations: 15.44 kB / 0.8724 GB, free: 9.641 MB / 0.5417 GB Notification: Performance of SimCode: time 2.9e-07/0.6907, allocations: 3.938 kB / 0.8724 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.7105, allocations: 1.49 MB / 0.8739 GB, free: 8.148 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/0.7107, allocations: 169.6 kB / 0.874 GB, free: 7.957 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.612/2.323, allocations: 0 / 0.874 GB, free: 7.957 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)