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.001779/0.001779, allocations: 105.5 kB / 16.41 MB, free: 6.488 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.001953/0.001953, allocations: 185.6 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.16 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.156/2.156, allocations: 390.3 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 64.09 kB / 0.9516 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9002/0.9017, allocations: 140.4 MB / 1.089 GB, free: 5.562 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.001709/0.9035, allocations: 0.6377 MB / 1.089 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001863/0.9054, allocations: 1.453 MB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.836e-05/0.9055, allocations: 0.6875 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.568e-05/0.9055, allocations: 3.938 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.428e-05/0.9056, allocations: 7.203 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000458/0.906, allocations: 122.8 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.937e-05/0.9061, allocations: 24.86 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.562e-05/0.9062, allocations: 2.812 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.983e-05/0.9062, allocations: 16.59 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.748e-05/0.9063, allocations: 26.94 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.9063, allocations: 1.812 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005452/0.9069, allocations: 311.5 kB / 1.091 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.592e-05/0.9069, allocations: 15.66 kB / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.322e-05/0.907, allocations: 16.36 kB / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.9073, allocations: 179 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.9074, allocations: 4.719 kB / 1.091 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.884e-06/0.9074, allocations: 0 / 1.091 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.9074, allocations: 0.7188 kB / 1.091 GB, free: 3.863 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.0004578/0.9078, allocations: 375.3 kB / 1.092 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.9079, allocations: 9.844 kB / 1.092 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003922/0.9083, allocations: 63.25 kB / 1.092 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.9084, allocations: 179.2 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.9084, allocations: 5.438 kB / 1.092 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/0.9085, allocations: 6.562 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.9087, allocations: 75.97 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.9088, allocations: 9.344 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.9088, allocations: 0.7188 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.9088, allocations: 0.75 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000375/0.9092, allocations: 70.97 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.9093, allocations: 170.4 kB / 1.092 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005658/0.9099, allocations: 128.8 kB / 1.092 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.9101, allocations: 48.12 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.9101, allocations: 0.9062 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.9102, allocations: 36.27 kB / 1.093 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 2.114e-06/0.9102, allocations: 0 / 1.093 GB, free: 2.898 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.004478/0.9147, allocations: 0.7865 MB / 1.093 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.9147, allocations: 53 kB / 1.093 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.9148, allocations: 122 kB / 1.093 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.9149, allocations: 26.61 kB / 1.093 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.973e-05/0.9149, allocations: 86.42 kB / 1.094 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.942e-05/0.915, allocations: 25.64 kB / 1.094 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-05/0.915, allocations: 25.84 kB / 1.094 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.308e-05/0.9151, allocations: 314.8 kB / 1.094 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004438/0.9155, allocations: 103.4 kB / 1.094 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004332/0.916, allocations: 95.31 kB / 1.094 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008423/0.9168, allocations: 194.7 kB / 1.094 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.9168, allocations: 0 / 1.094 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0009504/0.9178, allocations: 252.5 kB / 1.095 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.9178, allocations: 5.188 kB / 1.095 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.9178, allocations: 0.6875 kB / 1.095 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.9178, allocations: 0.8438 kB / 1.095 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.9182, allocations: 54.64 kB / 1.095 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.9182, allocations: 0.875 kB / 1.095 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.9184, allocations: 32.77 kB / 1.095 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.9184, allocations: 8.719 kB / 1.095 GB, free: 1.961 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.555e-05/0.9185, allocations: 122.3 kB / 1.095 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/0.9185, allocations: 2.156 kB / 1.095 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.12e-05/0.9186, allocations: 15.44 kB / 1.095 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.9186, allocations: 1.344 kB / 1.095 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.9186, allocations: 0.875 kB / 1.095 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.9186, allocations: 0.7969 kB / 1.095 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/0.9203, allocations: 0.599 MB / 1.095 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.9203, allocations: 1.781 kB / 1.095 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002675/0.9205, allocations: 54.7 kB / 1.095 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.9206, allocations: 1.75 kB / 1.095 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.9206, allocations: 4.406 kB / 1.095 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.9206, allocations: 1.406 kB / 1.095 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.9206, allocations: 5.891 kB / 1.095 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009146/0.9215, allocations: 349.5 kB / 1.096 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.713e-05/0.9215, allocations: 81.12 kB / 1.096 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.568e-05/0.9216, allocations: 5.812 kB / 1.096 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.9218, allocations: 41.06 kB / 1.096 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/0.9219, allocations: 12.14 kB / 1.096 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.9219, allocations: 5.562 kB / 1.096 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.911e-05/0.9219, allocations: 90.61 kB / 1.096 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9219, allocations: 0 / 1.096 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003174/0.9223, allocations: 45.23 kB / 1.096 GB, free: 1.047 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.0002041/0.9225, allocations: 124.2 kB / 1.096 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009631/0.9235, allocations: 210.7 kB / 1.096 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.9235, allocations: 5.281 kB / 1.096 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004542/0.9239, allocations: 108.6 kB / 1.096 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.9242, allocations: 10.3 kB / 1.096 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.9257, allocations: 424 kB / 1.097 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/0.9259, allocations: 0.6864 MB / 1.098 GB, free: 8 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.926, allocations: 23.39 kB / 1.098 GB, free: 16 MB / 0.8731 GB Notification: Performance of SimCode: time 6.81e-07/0.926, allocations: 0 / 1.098 GB, free: 16 MB / 0.8731 GB Notification: Performance of Templates: time 0.003546/0.9296, allocations: 1.441 MB / 1.099 GB, free: 15.88 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