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.001223/0.001223, 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.001208/0.001208, allocations: 194.8 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002375/0.002375, allocations: 282.6 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.02/1.02, allocations: 178.6 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00262/0.00262, allocations: 99.28 kB / 0.6066 GB, free: 24.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1551, allocations: 89.15 MB / 0.6936 GB, free: 4.207 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001856/0.157, allocations: 0.5925 MB / 0.6942 GB, free: 3.617 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.1589, allocations: 1.458 MB / 0.6956 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.074e-05/0.1589, allocations: 0 / 0.6956 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.454e-05/0.159, allocations: 0.5312 kB / 0.6956 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.639e-05/0.159, allocations: 5.344 kB / 0.6956 GB, free: 2.133 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004399/0.1595, allocations: 145.8 kB / 0.6958 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.403e-05/0.1595, allocations: 31.86 kB / 0.6958 GB, free: 1.961 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.024e-05/0.1596, allocations: 3.281 kB / 0.6958 GB, free: 1.961 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.671e-05/0.1596, allocations: 15.98 kB / 0.6958 GB, free: 1.945 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.445e-05/0.1597, allocations: 31.89 kB / 0.6958 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.1597, allocations: 0 / 0.6958 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004541/0.1602, allocations: 315.4 kB / 0.6961 GB, free: 1.605 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.51e-05/0.1602, allocations: 7.922 kB / 0.6962 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.889e-05/0.1602, allocations: 19.91 kB / 0.6962 GB, free: 1.578 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002864/0.1605, allocations: 183.7 kB / 0.6963 GB, free: 1.398 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.1606, allocations: 0 / 0.6963 GB, free: 1.398 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1606, allocations: 0.7812 kB / 0.6963 GB, free: 1.398 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.1606, allocations: 0 / 0.6963 GB, free: 1.398 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.0005569/0.1611, allocations: 371.7 kB / 0.6967 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1612, allocations: 12.03 kB / 0.6967 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.378e-05/0.1612, allocations: 30.75 kB / 0.6967 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004557/0.1617, allocations: 80.78 kB / 0.6968 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.1618, allocations: 164.4 kB / 0.697 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.1619, allocations: 384 / 0.697 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.1619, allocations: 8.312 kB / 0.697 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002592/0.1621, allocations: 77.75 kB / 0.6971 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.1622, allocations: 4 kB / 0.6971 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.1622, allocations: 0 / 0.6971 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.1622, allocations: 0 / 0.6971 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003094/0.1625, allocations: 59.94 kB / 0.6971 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001906/0.1627, allocations: 169.7 kB / 0.6973 GB, free: 300 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006223/0.1633, allocations: 122.5 kB / 0.6974 GB, free: 168 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.1635, allocations: 40.92 kB / 0.6974 GB, free: 124 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000486/0.164, allocations: 153.1 kB / 0.6976 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.164, allocations: 38.44 kB / 0.6976 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.683e-06/0.1641, allocations: 4 kB / 0.6976 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5): time 0.001212/0.1653, allocations: 406.1 kB / 0.698 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.1653, allocations: 51.41 kB / 0.6981 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.433e-05/0.1654, allocations: 97.86 kB / 0.6982 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.1654, allocations: 25.7 kB / 0.6982 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.651e-05/0.1655, allocations: 80.14 kB / 0.6983 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.523e-05/0.1655, allocations: 23.66 kB / 0.6983 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.786e-05/0.1656, allocations: 25.83 kB / 0.6983 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1657, allocations: 314.8 kB / 0.6986 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.1659, allocations: 35.95 kB / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.1661, allocations: 35.97 kB / 0.6987 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003128/0.1664, allocations: 84.73 kB / 0.6988 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-07/0.1664, allocations: 0 / 0.6988 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003626/0.1668, allocations: 105.6 kB / 0.6989 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1668, allocations: 11.98 kB / 0.6989 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.1668, allocations: 0 / 0.6989 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1668, allocations: 4 kB / 0.6989 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.167, allocations: 19.98 kB / 0.6989 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.167, allocations: 256 / 0.6989 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.1671, allocations: 19.92 kB / 0.6989 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.1671, allocations: 11.94 kB / 0.6989 GB, free: 14.47 MB / 0.4981 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.29e-05/0.1672, allocations: 117.8 kB / 0.699 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.649e-05/0.1672, allocations: 3.938 kB / 0.699 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004529/0.1677, allocations: 133.5 kB / 0.6992 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1677, allocations: 4 kB / 0.6992 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.1677, allocations: 4 kB / 0.6992 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1677, allocations: 3.984 kB / 0.6992 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.1679, allocations: 161.7 kB / 0.6993 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.1679, allocations: 3.938 kB / 0.6993 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.168, allocations: 19.98 kB / 0.6993 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.168, allocations: 0 / 0.6993 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.1681, allocations: 4 kB / 0.6994 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1681, allocations: 0 / 0.6994 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1681, allocations: 4 kB / 0.6994 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005849/0.1687, allocations: 192.9 kB / 0.6995 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.849e-05/0.1687, allocations: 85.03 kB / 0.6996 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.1688, allocations: 4.031 kB / 0.6996 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.1689, allocations: 20.05 kB / 0.6996 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.312e-05/0.1689, allocations: 3.984 kB / 0.6996 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.1689, allocations: 4 kB / 0.6997 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.941e-05/0.169, allocations: 75.28 kB / 0.6997 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.169, allocations: 0 / 0.6997 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002269/0.1692, allocations: 32 kB / 0.6998 GB, free: 13.51 MB / 0.4981 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.000978/0.1702, allocations: 0.753 MB / 0.7005 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003649/0.1706, allocations: 80.17 kB / 0.7006 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1706, allocations: 4 kB / 0.7006 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.1708, allocations: 48.03 kB / 0.7006 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001548/0.1709, allocations: 4.75 kB / 0.7006 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.173, allocations: 1.36 MB / 0.7019 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.1733, allocations: 0.6815 MB / 0.7026 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001075/0.1735, allocations: 19.94 kB / 0.7026 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.704e-05/0.1735, allocations: 15.42 kB / 0.7026 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1735, allocations: 4 kB / 0.7027 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.1974, allocations: 2.036 MB / 0.7046 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.381/7.579, allocations: 15.75 kB / 0.7047 GB, free: 8.484 MB / 0.4981 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)