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.0009477/0.0009477, 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.0009944/0.0009943, allocations: 194.2 kB / 16.13 MB, free: 6.668 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.228/1.228, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001836/0.001836, allocations: 286.1 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8535/0.8535, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 91.38 kB / 0.5946 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.125, allocations: 86.98 MB / 0.6796 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001393/0.1264, allocations: 0.649 MB / 0.6802 GB, free: 420 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.1279, allocations: 1.478 MB / 0.6816 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.669e-06/0.1279, allocations: 0.7812 kB / 0.6816 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.075e-05/0.1279, allocations: 3.938 kB / 0.6816 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.62e-05/0.1279, allocations: 1.719 kB / 0.6816 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.1283, allocations: 109.7 kB / 0.6817 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.371e-05/0.1283, allocations: 27.86 kB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.664e-05/0.1283, allocations: 8.922 kB / 0.6818 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.771e-05/0.1284, allocations: 15.98 kB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.297e-05/0.1284, allocations: 31.89 kB / 0.6818 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.207e-05/0.1285, allocations: 0.5312 kB / 0.6818 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003614/0.1288, allocations: 311.4 kB / 0.6821 GB, free: 14.42 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.561e-05/0.1288, allocations: 11.98 kB / 0.6821 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.211e-05/0.1289, allocations: 11.92 kB / 0.6821 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.1291, allocations: 188 kB / 0.6823 GB, free: 14.21 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.1291, allocations: 0 / 0.6823 GB, free: 14.21 MB / 494.1 MB Notification: Performance of FrontEnd: time 5.11e-07/0.1291, allocations: 0 / 0.6823 GB, free: 14.21 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.205e-06/0.1291, allocations: 0 / 0.6823 GB, free: 14.21 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.0003678/0.1295, allocations: 367.5 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.573e-05/0.1295, allocations: 8.031 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.454e-05/0.1296, allocations: 38.69 kB / 0.6827 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004174/0.13, allocations: 72.75 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.479e-05/0.1301, allocations: 164.3 kB / 0.6829 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.1301, allocations: 4.375 kB / 0.6829 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.464e-05/0.1301, allocations: 4.375 kB / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002148/0.1303, allocations: 85.73 kB / 0.683 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.85e-06/0.1304, allocations: 4 kB / 0.683 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.1304, allocations: 0 / 0.683 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-06/0.1304, allocations: 0 / 0.683 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.1307, allocations: 63.94 kB / 0.6831 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.1308, allocations: 161.7 kB / 0.6833 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005204/0.1313, allocations: 130.5 kB / 0.6834 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.1315, allocations: 44.92 kB / 0.6834 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004018/0.1319, allocations: 149 kB / 0.6836 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.1319, allocations: 46.42 kB / 0.6836 GB, free: 12.71 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1319, allocations: 0 / 0.6836 GB, free: 12.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.0009836/0.1329, allocations: 406.1 kB / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.32e-05/0.1329, allocations: 55.41 kB / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.199e-05/0.133, allocations: 93.86 kB / 0.6841 GB, free: 12.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.133, allocations: 29.7 kB / 0.6842 GB, free: 12.05 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.96e-05/0.133, allocations: 80.14 kB / 0.6842 GB, free: 11.97 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.1331, allocations: 15.8 kB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.011e-05/0.1331, allocations: 21.72 kB / 0.6843 GB, free: 11.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.198e-05/0.1332, allocations: 310.8 kB / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.1333, allocations: 40.08 kB / 0.6846 GB, free: 11.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.1335, allocations: 35.97 kB / 0.6846 GB, free: 11.54 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.1338, allocations: 76.73 kB / 0.6847 GB, free: 11.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.1338, allocations: 4 kB / 0.6847 GB, free: 11.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003262/0.1341, allocations: 117.5 kB / 0.6848 GB, free: 11.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.1341, allocations: 8 kB / 0.6848 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-06/0.1341, allocations: 0 / 0.6848 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.672e-06/0.1341, allocations: 0 / 0.6848 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.1343, allocations: 23.98 kB / 0.6849 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1343, allocations: 0 / 0.6849 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.028e-05/0.1344, allocations: 15.92 kB / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.1344, allocations: 7.984 kB / 0.6849 GB, free: 11.29 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 5.811e-05/0.1345, allocations: 115.1 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.738e-05/0.1345, allocations: 11.94 kB / 0.685 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004005/0.1349, allocations: 133.4 kB / 0.6851 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1349, allocations: 0 / 0.6851 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-06/0.1349, allocations: 0 / 0.6851 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-06/0.1349, allocations: 0 / 0.6851 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.135, allocations: 169.6 kB / 0.6853 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.135, allocations: 11.94 kB / 0.6853 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.1352, allocations: 19.98 kB / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1352, allocations: 0 / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.1352, allocations: 0 / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1352, allocations: 3.938 kB / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1352, allocations: 3.984 kB / 0.6853 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004972/0.1357, allocations: 185.4 kB / 0.6855 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.241e-05/0.1358, allocations: 92.97 kB / 0.6856 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.1358, allocations: 3.938 kB / 0.6856 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.1359, allocations: 11.98 kB / 0.6856 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.292e-05/0.1359, allocations: 11.97 kB / 0.6856 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.136, allocations: 4 kB / 0.6856 GB, free: 10.42 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.761e-05/0.136, allocations: 83.34 kB / 0.6857 GB, free: 10.34 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.136, allocations: 0 / 0.6857 GB, free: 10.34 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001991/0.1362, allocations: 24 kB / 0.6857 GB, free: 10.32 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.0007517/0.137, allocations: 0.7491 MB / 0.6865 GB, free: 9.535 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000307/0.1373, allocations: 83.98 kB / 0.6865 GB, free: 9.453 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1373, allocations: 0 / 0.6865 GB, free: 9.453 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.1374, allocations: 51.91 kB / 0.6866 GB, free: 9.402 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.1376, allocations: 4.875 kB / 0.6866 GB, free: 9.398 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.1392, allocations: 1.362 MB / 0.6879 GB, free: 7.957 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.1394, allocations: 0.6809 MB / 0.6886 GB, free: 7.25 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.1395, allocations: 16 kB / 0.6886 GB, free: 7.234 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.038e-05/0.1396, allocations: 19.42 kB / 0.6886 GB, free: 7.215 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1396, allocations: 0 / 0.6886 GB, free: 7.215 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4602/0.5998, allocations: 1.91 MB / 0.6905 GB, free: 5.461 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002583/0.6, allocations: 225.6 kB / 0.6907 GB, free: 5.211 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.461/2.061, allocations: 0 / 0.6907 GB, free: 5.211 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)