Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|xInv|dy_dt|d2y_dt2",fileNamePrefix="Buildings_latest_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_latest_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.005823/0.005823, allocations: 100.2 kB / 15.73 MB, free: 6.496 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.001131/0.001131, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.948/2.948, allocations: 472.6 MB / 0.7453 GB, free: 4.531 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 67.83 kB / 1.07 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3593, allocations: 159.9 MB / 1.226 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.002015/0.3614, allocations: 0.6462 MB / 1.226 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002106/0.3635, allocations: 1.458 MB / 1.228 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.558e-05/0.3636, allocations: 0 / 1.228 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.815e-05/0.3636, allocations: 0 / 1.228 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.656e-05/0.3637, allocations: 7.938 kB / 1.228 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005459/0.3643, allocations: 119.5 kB / 1.228 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.558e-05/0.3644, allocations: 31.91 kB / 1.228 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.123e-05/0.3644, allocations: 4 kB / 1.228 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.225e-05/0.3645, allocations: 11.94 kB / 1.228 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.436e-05/0.3645, allocations: 23.91 kB / 1.228 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.3646, allocations: 4 kB / 1.228 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000533/0.3651, allocations: 319.3 kB / 1.228 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.332e-05/0.3651, allocations: 7.922 kB / 1.228 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.841e-05/0.3652, allocations: 19.86 kB / 1.228 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.3656, allocations: 187.5 kB / 1.228 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.3656, allocations: 0 / 1.228 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.525e-06/0.3656, allocations: 3.938 kB / 1.228 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.3656, allocations: 0 / 1.228 GB, free: 6.25 MB / 0.9825 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.0006202/0.3662, allocations: 382.9 kB / 1.229 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3663, allocations: 8.031 kB / 1.229 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003935/0.3667, allocations: 64.81 kB / 1.229 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.3669, allocations: 172.4 kB / 1.229 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.3669, allocations: 4.375 kB / 1.229 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.3669, allocations: 4.375 kB / 1.229 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002813/0.3672, allocations: 85.94 kB / 1.229 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3672, allocations: 3.953 kB / 1.229 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.3673, allocations: 0 / 1.229 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3673, allocations: 0 / 1.229 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003424/0.3676, allocations: 75.86 kB / 1.229 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002202/0.3678, allocations: 165.7 kB / 1.229 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005089/0.3684, allocations: 126.5 kB / 1.229 GB, free: 5.031 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.3686, allocations: 40.95 kB / 1.23 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.3686, allocations: 4 kB / 1.23 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.3686, allocations: 34.5 kB / 1.23 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.423e-06/0.3686, allocations: 0 / 1.23 GB, free: 4.941 MB / 0.9825 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.003795/0.3724, allocations: 0.7896 MB / 1.23 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.3725, allocations: 55.41 kB / 1.23 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.981e-05/0.3726, allocations: 117.8 kB / 1.23 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.3726, allocations: 25.7 kB / 1.231 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.136e-05/0.3727, allocations: 84.14 kB / 1.231 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.768e-05/0.3727, allocations: 31.73 kB / 1.231 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.283e-05/0.3728, allocations: 25.7 kB / 1.231 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3729, allocations: 322.8 kB / 1.231 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004259/0.3734, allocations: 99.83 kB / 1.231 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003925/0.3738, allocations: 99.92 kB / 1.231 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000772/0.3746, allocations: 192.7 kB / 1.231 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3746, allocations: 3.938 kB / 1.231 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0008433/0.3754, allocations: 245.3 kB / 1.232 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3754, allocations: 5.719 kB / 1.232 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3755, allocations: 0 / 1.232 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.3755, allocations: 4 kB / 1.232 GB, free: 2.805 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.3758, allocations: 51.94 kB / 1.232 GB, free: 2.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.3758, allocations: 4 kB / 1.232 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/0.376, allocations: 36.7 kB / 1.232 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.376, allocations: 8 kB / 1.232 GB, free: 2.707 MB / 0.9825 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 9.025e-05/0.3761, allocations: 114.2 kB / 1.232 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.512e-05/0.3761, allocations: 11.94 kB / 1.232 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.497e-05/0.3762, allocations: 12.38 kB / 1.232 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.3762, allocations: 4 kB / 1.232 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3762, allocations: 4 kB / 1.232 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3762, allocations: 0 / 1.232 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.3778, allocations: 0.5935 MB / 1.232 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3778, allocations: 4.062 kB / 1.232 GB, free: 1.891 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002474/0.3781, allocations: 55.88 kB / 1.232 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3781, allocations: 0 / 1.232 GB, free: 1.836 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.3781, allocations: 11.98 kB / 1.232 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3781, allocations: 0 / 1.232 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3781, allocations: 8 kB / 1.232 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008754/0.379, allocations: 337.2 kB / 1.233 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.211e-05/0.379, allocations: 85.06 kB / 1.233 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.3791, allocations: 8 kB / 1.233 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.3793, allocations: 35.95 kB / 1.233 GB, free: 1.32 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.182e-05/0.3794, allocations: 11.92 kB / 1.233 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.3794, allocations: 8 kB / 1.233 GB, free: 1.301 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.882e-05/0.3795, allocations: 91.27 kB / 1.233 GB, free: 1.211 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3795, allocations: 0 / 1.233 GB, free: 1.211 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002999/0.3798, allocations: 39.88 kB / 1.233 GB, free: 1.172 MB / 0.9825 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.0003602/0.3802, allocations: 139 kB / 1.233 GB, free: 1.027 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008749/0.381, allocations: 207.8 kB / 1.233 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3811, allocations: 0 / 1.233 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004171/0.3815, allocations: 108 kB / 1.233 GB, free: 0.7188 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002469/0.3817, allocations: 9.484 kB / 1.234 GB, free: 0.7109 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.3832, allocations: 402.3 kB / 1.234 GB, free: 292 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.3834, allocations: 0.6885 MB / 1.235 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001035/0.3835, allocations: 20.66 kB / 1.235 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.96e-05/0.3836, allocations: 19.42 kB / 1.235 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of SimCode: time 3.1e-07/0.3836, allocations: 0 / 1.235 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of Templates: time 0.004416/0.388, allocations: 1.672 MB / 1.236 GB, free: 13.86 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXRegularized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches