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.004762/0.004761, allocations: 102.8 kB / 15.73 MB, free: 5.984 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.001104/0.001104, allocations: 195.2 kB / 16.67 MB, free: 5.91 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.234/1.234, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002073/0.002073, allocations: 278 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8894/0.8894, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 99.84 kB / 0.681 GB, free: 7.406 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4212/0.4228, allocations: 86.98 MB / 0.766 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001612/0.4245, allocations: 0.59 MB / 0.7665 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001666/0.4262, allocations: 1.456 MB / 0.768 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.503e-05/0.4262, allocations: 0 / 0.768 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.49e-05/0.4262, allocations: 0 / 0.768 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.71e-05/0.4263, allocations: 3.938 kB / 0.768 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004702/0.4268, allocations: 143.4 kB / 0.7681 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.026e-05/0.4268, allocations: 35.91 kB / 0.7681 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.075e-05/0.4269, allocations: 3.984 kB / 0.7681 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.259e-05/0.4269, allocations: 15.94 kB / 0.7681 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.651e-05/0.427, allocations: 23.95 kB / 0.7682 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.427, allocations: 4 kB / 0.7682 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004293/0.4275, allocations: 315.4 kB / 0.7685 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.617e-05/0.4275, allocations: 3.984 kB / 0.7685 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.977e-05/0.4275, allocations: 15.92 kB / 0.7685 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.4278, allocations: 198.4 kB / 0.7687 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.4278, allocations: 0 / 0.7687 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.422e-06/0.4278, allocations: 0 / 0.7687 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.4278, allocations: 0 / 0.7687 GB, free: 1.008 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.0005098/0.4284, allocations: 363.5 kB / 0.769 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.566e-05/0.4284, allocations: 12.03 kB / 0.769 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.385e-05/0.4285, allocations: 30.75 kB / 0.7691 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004382/0.4289, allocations: 72.84 kB / 0.7691 GB, free: 496 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.429, allocations: 164.3 kB / 0.7693 GB, free: 292 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.4291, allocations: 8.359 kB / 0.7693 GB, free: 284 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.4291, allocations: 8.312 kB / 0.7693 GB, free: 276 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.4293, allocations: 77.75 kB / 0.7694 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.4293, allocations: 0 / 0.7694 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.4294, allocations: 0 / 0.7694 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.4294, allocations: 0 / 0.7694 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002618/0.4296, allocations: 63.94 kB / 0.7694 GB, free: 128 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001927/0.4298, allocations: 165.7 kB / 0.7696 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005567/0.4304, allocations: 126.5 kB / 0.7697 GB, free: 15.78 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.4306, allocations: 40.92 kB / 0.7698 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004372/0.431, allocations: 157 kB / 0.7699 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.431, allocations: 42.44 kB / 0.77 GB, free: 15.52 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.093e-06/0.431, allocations: 0 / 0.77 GB, free: 15.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=5): time 0.001082/0.4321, allocations: 402.2 kB / 0.7703 GB, free: 15.07 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.4322, allocations: 55.41 kB / 0.7704 GB, free: 15 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.172e-05/0.4323, allocations: 89.86 kB / 0.7705 GB, free: 14.91 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.4323, allocations: 29.83 kB / 0.7705 GB, free: 14.87 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.808e-05/0.4323, allocations: 84.14 kB / 0.7706 GB, free: 14.79 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.4324, allocations: 27.62 kB / 0.7706 GB, free: 14.76 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.146e-05/0.4324, allocations: 17.72 kB / 0.7706 GB, free: 14.73 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.4325, allocations: 318.8 kB / 0.7709 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.4327, allocations: 35.97 kB / 0.771 GB, free: 14.38 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.4328, allocations: 40.03 kB / 0.771 GB, free: 14.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.4331, allocations: 80.73 kB / 0.7711 GB, free: 14.26 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.4331, allocations: 0 / 0.7711 GB, free: 14.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003293/0.4334, allocations: 113.6 kB / 0.7712 GB, free: 14.14 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.4335, allocations: 6.188 kB / 0.7712 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.4335, allocations: 4 kB / 0.7712 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.4335, allocations: 0 / 0.7712 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.4336, allocations: 23.98 kB / 0.7712 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.4336, allocations: 4 kB / 0.7712 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.378e-05/0.4337, allocations: 15.97 kB / 0.7712 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.4338, allocations: 3.938 kB / 0.7712 GB, free: 14.09 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 8.745e-05/0.4339, allocations: 113.8 kB / 0.7714 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.582e-05/0.4339, allocations: 3.938 kB / 0.7714 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004058/0.4343, allocations: 137.2 kB / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.4343, allocations: 4 kB / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.4343, allocations: 0 / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4343, allocations: 0 / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.4344, allocations: 161.7 kB / 0.7716 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4345, allocations: 3.938 kB / 0.7716 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.4346, allocations: 23.98 kB / 0.7717 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.4346, allocations: 4.328 kB / 0.7717 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.4346, allocations: 8.234 kB / 0.7717 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4346, allocations: 0 / 0.7717 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4346, allocations: 7.938 kB / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005102/0.4352, allocations: 184.9 kB / 0.7719 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.25e-05/0.4352, allocations: 93.05 kB / 0.772 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.4353, allocations: 8.062 kB / 0.772 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.4354, allocations: 11.98 kB / 0.772 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.008e-05/0.4354, allocations: 3.984 kB / 0.772 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.4354, allocations: 4 kB / 0.772 GB, free: 13.23 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.888e-05/0.4355, allocations: 75.28 kB / 0.7721 GB, free: 13.15 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4355, allocations: 0 / 0.7721 GB, free: 13.15 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002119/0.4357, allocations: 35.98 kB / 0.7721 GB, free: 13.12 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.0008821/0.4366, allocations: 0.7491 MB / 0.7728 GB, free: 12.34 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003259/0.4369, allocations: 83.98 kB / 0.7729 GB, free: 12.25 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4369, allocations: 0 / 0.7729 GB, free: 12.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.4371, allocations: 51.89 kB / 0.7729 GB, free: 12.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.4372, allocations: 4.75 kB / 0.773 GB, free: 12.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.439, allocations: 1.34 MB / 0.7743 GB, free: 10.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.4393, allocations: 0.6846 MB / 0.7749 GB, free: 10.06 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.241e-05/0.4393, allocations: 23.92 kB / 0.775 GB, free: 10.04 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.918e-05/0.4394, allocations: 11.44 kB / 0.775 GB, free: 10.03 MB / 0.545 GB Notification: Performance of SimCode: time 2.11e-07/0.4394, allocations: 0 / 0.775 GB, free: 10.03 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01662/0.456, allocations: 2.092 MB / 0.777 GB, free: 8.094 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.079/7.535, allocations: 2.344 kB / 0.777 GB, free: 8.094 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)