Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|xInv|dy_dt|d2y_dt2",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|xInv|dy_dt|d2y_dt2",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 110.1 kB / 16.41 MB, free: 6.492 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.001075/0.001075, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.245/2.245, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.91 kB / 0.9516 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9288/0.9301, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.001705/0.9318, allocations: 0.6336 MB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001645/0.9335, allocations: 1.456 MB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.262e-05/0.9335, allocations: 0 / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.711e-05/0.9336, allocations: 3.938 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.272e-05/0.9336, allocations: 3.078 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004475/0.9341, allocations: 133.7 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.521e-05/0.9342, allocations: 33.33 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.912e-05/0.9342, allocations: 4.297 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.961e-05/0.9343, allocations: 15.38 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.098e-05/0.9344, allocations: 20.36 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.419e-05/0.9344, allocations: 0.7812 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005368/0.9349, allocations: 315.3 kB / 1.091 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.941e-05/0.9349, allocations: 15.11 kB / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.935, allocations: 20.84 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003369/0.9353, allocations: 179.5 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.9353, allocations: 0 / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.234e-06/0.9353, allocations: 1.438 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.9354, allocations: 0 / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004477/0.9358, allocations: 379.1 kB / 1.092 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.9359, allocations: 13.94 kB / 1.092 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003818/0.9362, allocations: 59.05 kB / 1.092 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.9364, allocations: 174.4 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.9364, allocations: 1.906 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.9364, allocations: 7.25 kB / 1.092 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002689/0.9367, allocations: 76.62 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.9367, allocations: 4.812 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.9367, allocations: 0 / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.9367, allocations: 4.875 kB / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003775/0.9371, allocations: 67.72 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.9373, allocations: 170.2 kB / 1.092 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005548/0.9378, allocations: 124.5 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.938, allocations: 44.09 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.938, allocations: 1.578 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.587e-05/0.9381, allocations: 39.44 kB / 1.093 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.9381, allocations: 4.75 kB / 1.093 GB, free: 2.828 MB / 0.8575 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=9): time 0.004072/0.9422, allocations: 0.7785 MB / 1.093 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.9422, allocations: 57.08 kB / 1.093 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.798e-05/0.9423, allocations: 114.9 kB / 1.093 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.9423, allocations: 29.7 kB / 1.093 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.245e-05/0.9423, allocations: 82.69 kB / 1.094 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.578e-05/0.9424, allocations: 29.02 kB / 1.094 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.029e-05/0.9424, allocations: 30.36 kB / 1.094 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.442e-05/0.9425, allocations: 319.2 kB / 1.094 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000465/0.943, allocations: 98.39 kB / 1.094 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000435/0.9434, allocations: 100.4 kB / 1.094 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000833/0.9442, allocations: 190.2 kB / 1.094 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.9443, allocations: 0 / 1.094 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0009554/0.9452, allocations: 248.7 kB / 1.095 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.9452, allocations: 5.219 kB / 1.095 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.9453, allocations: 4 kB / 1.095 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.9453, allocations: 1.578 kB / 1.095 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003141/0.9456, allocations: 58.39 kB / 1.095 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.9456, allocations: 1.656 kB / 1.095 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.9458, allocations: 35.81 kB / 1.095 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.9459, allocations: 4.734 kB / 1.095 GB, free: 1.891 MB / 0.8575 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 (9): * Single equations (assignments): 9 * 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 6.409e-05/0.9459, allocations: 121.5 kB / 1.095 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.129e-05/0.9459, allocations: 2.219 kB / 1.095 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.946, allocations: 15.25 kB / 1.095 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.946, allocations: 5.266 kB / 1.095 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.946, allocations: 0.7812 kB / 1.095 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.946, allocations: 0.7031 kB / 1.095 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.9477, allocations: 0.5961 MB / 1.095 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.9477, allocations: 5.062 kB / 1.095 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002642/0.948, allocations: 54.28 kB / 1.095 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.948, allocations: 2.266 kB / 1.095 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.948, allocations: 5.016 kB / 1.095 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.948, allocations: 3.938 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.948, allocations: 5.312 kB / 1.095 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009201/0.9489, allocations: 351.6 kB / 1.096 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.342e-05/0.949, allocations: 80.23 kB / 1.096 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.949, allocations: 1.344 kB / 1.096 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.9493, allocations: 41.62 kB / 1.096 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.238e-05/0.9493, allocations: 12.28 kB / 1.096 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.9493, allocations: 6.234 kB / 1.096 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.003e-05/0.9494, allocations: 89.19 kB / 1.096 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9494, allocations: 4.656 kB / 1.096 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003303/0.9497, allocations: 41.69 kB / 1.096 GB, free: 0.9727 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (9): * Single equations (assignments): 9 * 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.0002025/0.9499, allocations: 124.5 kB / 1.096 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001002/0.9509, allocations: 211.4 kB / 1.096 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.9509, allocations: 0 / 1.096 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004573/0.9514, allocations: 110 kB / 1.096 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.9517, allocations: 13.16 kB / 1.096 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.9533, allocations: 428.8 kB / 1.097 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001635/0.9534, allocations: 0.6856 MB / 1.098 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.496e-05/0.9535, allocations: 24.14 kB / 1.098 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.9535, allocations: 0 / 1.098 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of Templates: time 0.003857/0.9574, allocations: 1.428 MB / 1.099 GB, free: 15.82 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXRegularized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches