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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.302/1.302, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002061/0.002061, allocations: 283 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9254/0.9254, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 101.8 kB / 0.5954 GB, free: 27.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1477, allocations: 86.98 MB / 0.6803 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.002126/0.1499, allocations: 0.5884 MB / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.1518, allocations: 1.458 MB / 0.6823 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.965e-05/0.1518, allocations: 4.781 kB / 0.6823 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.557e-05/0.1519, allocations: 3.938 kB / 0.6823 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.05e-05/0.1519, allocations: 1.656 kB / 0.6823 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005455/0.1525, allocations: 137.7 kB / 0.6824 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.507e-05/0.1526, allocations: 27.92 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.759e-05/0.1526, allocations: 4.875 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.201e-05/0.1527, allocations: 11.98 kB / 0.6825 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.124e-05/0.1527, allocations: 27.89 kB / 0.6825 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.1528, allocations: 9.172 kB / 0.6825 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004229/0.1532, allocations: 307.4 kB / 0.6828 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/0.1532, allocations: 11.98 kB / 0.6828 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.74e-05/0.1533, allocations: 12.41 kB / 0.6828 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.1536, allocations: 192 kB / 0.683 GB, free: 13.73 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1536, allocations: 0 / 0.683 GB, free: 13.73 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1536, allocations: 0 / 0.683 GB, free: 13.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1536, allocations: 0 / 0.683 GB, free: 13.73 MB / 494.1 MB 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.0005381/0.1541, allocations: 367.5 kB / 0.6834 GB, free: 13.32 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1542, allocations: 8.031 kB / 0.6834 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.606e-05/0.1542, allocations: 34.75 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004654/0.1547, allocations: 80.69 kB / 0.6835 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.1548, allocations: 164.3 kB / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.1548, allocations: 8.375 kB / 0.6836 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.1549, allocations: 384 / 0.6836 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002541/0.1551, allocations: 85.73 kB / 0.6837 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.1551, allocations: 0 / 0.6837 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.1551, allocations: 0 / 0.6837 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.1552, allocations: 0 / 0.6837 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003177/0.1555, allocations: 63.94 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001753/0.1557, allocations: 161.7 kB / 0.6839 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/0.1563, allocations: 126.5 kB / 0.6841 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.1564, allocations: 44.92 kB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004453/0.1569, allocations: 157 kB / 0.6843 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.1569, allocations: 38.5 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.482e-06/0.1569, allocations: 3.938 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.001151/0.1581, allocations: 406.1 kB / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.806e-05/0.1581, allocations: 51.41 kB / 0.6847 GB, free: 11.71 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.109e-05/0.1582, allocations: 101.9 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.1582, allocations: 29.83 kB / 0.6849 GB, free: 11.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.543e-05/0.1583, allocations: 80.14 kB / 0.6849 GB, free: 11.49 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.1583, allocations: 11.8 kB / 0.6849 GB, free: 11.48 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.1583, allocations: 21.72 kB / 0.685 GB, free: 11.45 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.1584, allocations: 314.8 kB / 0.6853 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.1586, allocations: 43.89 kB / 0.6853 GB, free: 11.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.1588, allocations: 35.97 kB / 0.6853 GB, free: 11.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003043/0.1591, allocations: 76.8 kB / 0.6854 GB, free: 10.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.1591, allocations: 0 / 0.6854 GB, free: 10.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003818/0.1595, allocations: 117.5 kB / 0.6855 GB, free: 10.86 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.1595, allocations: 8 kB / 0.6855 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1595, allocations: 0 / 0.6855 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.1595, allocations: 0 / 0.6855 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.1597, allocations: 19.98 kB / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.1597, allocations: 7.938 kB / 0.6856 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1598, allocations: 12.23 kB / 0.6856 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.1598, allocations: 11.92 kB / 0.6856 GB, free: 10.8 MB / 494.1 MB 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 7.385e-05/0.1599, allocations: 111.2 kB / 0.6857 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.003e-05/0.1599, allocations: 11.94 kB / 0.6857 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004579/0.1604, allocations: 133.2 kB / 0.6858 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1604, allocations: 0 / 0.6858 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1604, allocations: 0 / 0.6858 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1604, allocations: 0 / 0.6858 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001348/0.1606, allocations: 165.7 kB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.1606, allocations: 7.938 kB / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.1607, allocations: 27.92 kB / 0.686 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1607, allocations: 0 / 0.686 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.1608, allocations: 3.984 kB / 0.686 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1608, allocations: 0 / 0.686 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1608, allocations: 0 / 0.686 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005629/0.1613, allocations: 177 kB / 0.6862 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.992e-05/0.1614, allocations: 96.97 kB / 0.6863 GB, free: 9.977 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.1614, allocations: 4.391 kB / 0.6863 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.1616, allocations: 15.92 kB / 0.6863 GB, free: 9.957 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.848e-05/0.1616, allocations: 7.984 kB / 0.6863 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.1616, allocations: 0 / 0.6863 GB, free: 9.949 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.154e-05/0.1617, allocations: 79.28 kB / 0.6864 GB, free: 9.871 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1617, allocations: 0 / 0.6864 GB, free: 9.871 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000233/0.1619, allocations: 31.98 kB / 0.6864 GB, free: 9.84 MB / 494.1 MB 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.000923/0.1628, allocations: 0.753 MB / 0.6872 GB, free: 9.055 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000383/0.1632, allocations: 88.11 kB / 0.6872 GB, free: 8.969 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1632, allocations: 0 / 0.6872 GB, free: 8.969 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001906/0.1634, allocations: 52.08 kB / 0.6873 GB, free: 8.918 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.1636, allocations: 10.72 kB / 0.6873 GB, free: 8.91 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.1656, allocations: 1.356 MB / 0.6886 GB, free: 7.473 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.1659, allocations: 0.6807 MB / 0.6893 GB, free: 6.766 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.166, allocations: 16 kB / 0.6893 GB, free: 6.75 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.014e-05/0.1661, allocations: 15.42 kB / 0.6893 GB, free: 6.734 MB / 494.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1661, allocations: 0 / 0.6893 GB, free: 6.734 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.186, allocations: 2.049 MB / 0.6913 GB, free: 4.816 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.361/7.547, allocations: 10.58 kB / 0.6913 GB, free: 4.812 MB / 494.1 MB (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/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)