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.005602/0.005602, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001517/0.001517, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002785/0.002785, allocations: 291.7 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9819/0.9819, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002706/0.002706, allocations: 103.8 kB / 0.681 GB, free: 7.445 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4758/0.4785, allocations: 86.97 MB / 0.766 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001709/0.4803, allocations: 0.6006 MB / 0.7665 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001998/0.4823, allocations: 1.452 MB / 0.768 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.87e-05/0.4823, allocations: 3.938 kB / 0.768 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.305e-05/0.4824, allocations: 4 kB / 0.768 GB, free: 1.773 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.096e-05/0.4824, allocations: 3.938 kB / 0.768 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004864/0.4829, allocations: 135.5 kB / 0.7681 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.376e-05/0.483, allocations: 31.91 kB / 0.7681 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.86e-05/0.483, allocations: 4 kB / 0.7681 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.272e-05/0.4831, allocations: 23.92 kB / 0.7682 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.994e-05/0.4832, allocations: 23.95 kB / 0.7682 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.4832, allocations: 0 / 0.7682 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004785/0.4837, allocations: 311.4 kB / 0.7685 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.483e-05/0.4837, allocations: 15.91 kB / 0.7685 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.461e-05/0.4837, allocations: 8 kB / 0.7685 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003048/0.484, allocations: 192.6 kB / 0.7687 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.484, allocations: 0 / 0.7687 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.224e-06/0.4841, allocations: 0 / 0.7687 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.4841, allocations: 0 / 0.7687 GB, free: 1.047 MB / 0.5294 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.0005842/0.4847, allocations: 375 kB / 0.769 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.4847, allocations: 12.03 kB / 0.7691 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.4847, allocations: 30.75 kB / 0.7691 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000456/0.4852, allocations: 68.84 kB / 0.7691 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.4853, allocations: 160.4 kB / 0.7693 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.192e-05/0.4854, allocations: 384 / 0.7693 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.4854, allocations: 8.375 kB / 0.7693 GB, free: 320 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000265/0.4857, allocations: 85.69 kB / 0.7694 GB, free: 228 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.4857, allocations: 0 / 0.7694 GB, free: 228 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.4857, allocations: 0 / 0.7694 GB, free: 228 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.4857, allocations: 3.984 kB / 0.7694 GB, free: 224 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/0.486, allocations: 67.92 kB / 0.7695 GB, free: 156 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002243/0.4863, allocations: 157.7 kB / 0.7696 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006014/0.4869, allocations: 134.5 kB / 0.7697 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.4871, allocations: 44.91 kB / 0.7698 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004711/0.4875, allocations: 149 kB / 0.7699 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.4876, allocations: 38.5 kB / 0.77 GB, free: 15.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.4876, allocations: 0 / 0.77 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=5): time 0.00118/0.4888, allocations: 402.2 kB / 0.7703 GB, free: 15.11 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.4888, allocations: 51.41 kB / 0.7704 GB, free: 15.04 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.615e-05/0.4889, allocations: 101.8 kB / 0.7705 GB, free: 14.93 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.489, allocations: 25.7 kB / 0.7705 GB, free: 14.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.782e-05/0.489, allocations: 80.14 kB / 0.7706 GB, free: 14.82 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.489, allocations: 23.8 kB / 0.7706 GB, free: 14.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.661e-05/0.4891, allocations: 21.84 kB / 0.7706 GB, free: 14.77 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.4893, allocations: 322.8 kB / 0.7709 GB, free: 14.45 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.4894, allocations: 31.97 kB / 0.771 GB, free: 14.41 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.4896, allocations: 35.97 kB / 0.771 GB, free: 14.38 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.4899, allocations: 80.92 kB / 0.7711 GB, free: 14.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.4899, allocations: 4 kB / 0.7711 GB, free: 14.29 MB / 0.545 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003784/0.4903, allocations: 117.6 kB / 0.7712 GB, free: 14.17 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.4903, allocations: 4 kB / 0.7712 GB, free: 14.17 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.4903, allocations: 4 kB / 0.7712 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.4903, allocations: 0 / 0.7712 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.4905, allocations: 23.97 kB / 0.7712 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.4905, allocations: 0 / 0.7712 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.4906, allocations: 15.98 kB / 0.7712 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.4906, allocations: 0 / 0.7712 GB, free: 14.12 MB / 0.545 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 9.318e-05/0.4907, allocations: 116.2 kB / 0.7714 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.822e-05/0.4907, allocations: 11.83 kB / 0.7714 GB, free: 13.99 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004468/0.4912, allocations: 129.2 kB / 0.7715 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.4912, allocations: 8 kB / 0.7715 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.4912, allocations: 0 / 0.7715 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.4912, allocations: 0 / 0.7715 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001667/0.4914, allocations: 169.6 kB / 0.7717 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.4914, allocations: 3.938 kB / 0.7717 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.4916, allocations: 23.97 kB / 0.7717 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.4916, allocations: 3.938 kB / 0.7717 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.4916, allocations: 4 kB / 0.7717 GB, free: 13.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4916, allocations: 4 kB / 0.7717 GB, free: 13.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.4916, allocations: 0 / 0.7717 GB, free: 13.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005699/0.4922, allocations: 185 kB / 0.7719 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.247e-05/0.4923, allocations: 85.03 kB / 0.772 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.4923, allocations: 4.219 kB / 0.772 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.4924, allocations: 24.03 kB / 0.772 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.092e-05/0.4925, allocations: 0 / 0.772 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.4925, allocations: 8 kB / 0.772 GB, free: 13.26 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.796e-05/0.4925, allocations: 75.28 kB / 0.7721 GB, free: 13.19 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4925, allocations: 0 / 0.7721 GB, free: 13.19 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003142/0.4928, allocations: 35.86 kB / 0.7721 GB, free: 13.15 MB / 0.545 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.001001/0.4939, allocations: 0.7567 MB / 0.7728 GB, free: 12.36 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003966/0.4943, allocations: 84 kB / 0.7729 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4943, allocations: 0 / 0.7729 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.4944, allocations: 47.89 kB / 0.773 GB, free: 12.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001915/0.4946, allocations: 7.25 kB / 0.773 GB, free: 12.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002179/0.4968, allocations: 1.352 MB / 0.7743 GB, free: 10.79 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.4972, allocations: 0.6807 MB / 0.7749 GB, free: 10.09 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.894e-05/0.4973, allocations: 20 kB / 0.775 GB, free: 10.07 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.209e-05/0.4973, allocations: 15.44 kB / 0.775 GB, free: 10.05 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.4973, allocations: 0 / 0.775 GB, free: 10.05 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03747/0.5348, allocations: 2.077 MB / 0.777 GB, free: 8.129 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.885/8.42, allocations: 5.594 kB / 0.777 GB, free: 8.129 MB / 0.545 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/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)