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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001486/0.001486, allocations: 102.1 kB / 16.35 MB, free: 5.875 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.001596/0.001596, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.278/2.278, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002188/0.002188, allocations: 65.92 kB / 0.814 GB, free: 32.63 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2477, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.001885/0.2496, allocations: 0.6404 MB / 0.9517 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001901/0.2515, allocations: 1.448 MB / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.035e-05/0.2516, allocations: 0 / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.413e-05/0.2516, allocations: 0 / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.027e-05/0.2517, allocations: 7.938 kB / 0.9532 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.2522, allocations: 123.4 kB / 0.9533 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.073e-05/0.2523, allocations: 35.83 kB / 0.9533 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.004e-05/0.2523, allocations: 4 kB / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.87e-05/0.2524, allocations: 11.94 kB / 0.9533 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.108e-05/0.2525, allocations: 23.91 kB / 0.9534 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.2525, allocations: 4 kB / 0.9534 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004823/0.253, allocations: 315.3 kB / 0.9537 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.816e-05/0.253, allocations: 8 kB / 0.9537 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.914e-05/0.253, allocations: 19.8 kB / 0.9537 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.2533, allocations: 179.7 kB / 0.9539 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2534, allocations: 0 / 0.9539 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.094e-06/0.2534, allocations: 0 / 0.9539 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.2534, allocations: 0 / 0.9539 GB, free: 5.242 MB / 0.7325 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.0005038/0.2539, allocations: 391.2 kB / 0.9542 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2539, allocations: 12.03 kB / 0.9542 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003794/0.2543, allocations: 56.86 kB / 0.9543 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.2545, allocations: 176.3 kB / 0.9545 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.2545, allocations: 4.375 kB / 0.9545 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.487e-05/0.2545, allocations: 4.375 kB / 0.9545 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002639/0.2548, allocations: 77.89 kB / 0.9545 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.2548, allocations: 4 kB / 0.9546 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.2548, allocations: 0 / 0.9546 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.2548, allocations: 4 kB / 0.9546 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003522/0.2552, allocations: 75.8 kB / 0.9546 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.2554, allocations: 173.6 kB / 0.9548 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/0.2559, allocations: 130.4 kB / 0.9549 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.2561, allocations: 44.95 kB / 0.955 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.2561, allocations: 0 / 0.955 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.2562, allocations: 34.5 kB / 0.955 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.2562, allocations: 0 / 0.955 GB, free: 3.918 MB / 0.7325 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.004031/0.2602, allocations: 0.7907 MB / 0.9558 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.2603, allocations: 51.41 kB / 0.9558 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.347e-05/0.2604, allocations: 113.8 kB / 0.9559 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.2604, allocations: 25.7 kB / 0.9559 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.879e-05/0.2604, allocations: 84.14 kB / 0.956 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.087e-05/0.2605, allocations: 31.55 kB / 0.9561 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.974e-05/0.2606, allocations: 29.7 kB / 0.9561 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.727e-05/0.2607, allocations: 310.8 kB / 0.9564 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004159/0.2611, allocations: 107.8 kB / 0.9565 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004014/0.2615, allocations: 99.89 kB / 0.9566 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007804/0.2623, allocations: 184.7 kB / 0.9568 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2623, allocations: 4 kB / 0.9568 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0008762/0.2632, allocations: 249.6 kB / 0.957 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.2632, allocations: 4 kB / 0.957 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2632, allocations: 0 / 0.957 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.2632, allocations: 0 / 0.957 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003229/0.2636, allocations: 55.94 kB / 0.9571 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.2636, allocations: 0.75 kB / 0.9571 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.2638, allocations: 35.95 kB / 0.9571 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.2638, allocations: 4 kB / 0.9571 GB, free: 1.703 MB / 0.7325 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.962e-05/0.2639, allocations: 125.7 kB / 0.9572 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.264, allocations: 3.906 kB / 0.9572 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.788e-05/0.264, allocations: 16.38 kB / 0.9572 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.264, allocations: 0 / 0.9572 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.264, allocations: 3.938 kB / 0.9572 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2641, allocations: 4 kB / 0.9572 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.2658, allocations: 0.5977 MB / 0.9578 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2658, allocations: 0 / 0.9578 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002803/0.2661, allocations: 59.94 kB / 0.9579 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.2661, allocations: 0 / 0.9579 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.2661, allocations: 7.984 kB / 0.9579 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2661, allocations: 80 / 0.9579 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.2661, allocations: 3.984 kB / 0.9579 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009801/0.2671, allocations: 344.9 kB / 0.9582 GB, free: 464 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.045e-05/0.2672, allocations: 81.02 kB / 0.9583 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.937e-05/0.2672, allocations: 4 kB / 0.9583 GB, free: 360 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.2675, allocations: 39.95 kB / 0.9583 GB, free: 320 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.448e-05/0.2676, allocations: 11.92 kB / 0.9584 GB, free: 308 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.2676, allocations: 4 kB / 0.9584 GB, free: 304 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.033e-05/0.2677, allocations: 95.27 kB / 0.9584 GB, free: 208 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2677, allocations: 0 / 0.9584 GB, free: 208 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003557/0.268, allocations: 39.98 kB / 0.9585 GB, free: 168 kB / 0.7325 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.0003341/0.2684, allocations: 129.8 kB / 0.9586 GB, free: 28 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009774/0.2694, allocations: 207.9 kB / 0.9588 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2694, allocations: 8 kB / 0.9588 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004289/0.2698, allocations: 108 kB / 0.9589 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.2701, allocations: 7.984 kB / 0.9589 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.2716, allocations: 394.4 kB / 0.9593 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.2719, allocations: 0.6961 MB / 0.96 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.795e-05/0.272, allocations: 20.66 kB / 0.96 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.946e-05/0.2721, allocations: 19.42 kB / 0.96 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of SimCode: time 3.11e-07/0.2721, allocations: 0 / 0.96 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of Templates: time 0.004519/0.2766, allocations: 1.649 MB / 0.9616 GB, free: 12.88 MB / 0.7481 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 -s gbode -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