Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inverseXRegularized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized") translateModel(Buildings.Utilities.Math.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inverseXRegularized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002574/0.002574, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.412/1.412, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.784/2.784, allocations: 472.6 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 71.42 kB / 0.9121 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3403, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.InverseXRegularized): time 0.00283/0.3432, allocations: 1.445 MB / 1.07 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001228/0.3444, allocations: 0.8022 MB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.152e-05/0.3445, allocations: 0 / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.796e-05/0.3445, allocations: 0 / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.031e-05/0.3446, allocations: 3.938 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004623/0.3451, allocations: 127.5 kB / 1.071 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.518e-05/0.3451, allocations: 27.92 kB / 1.071 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.758e-05/0.3452, allocations: 7.984 kB / 1.071 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.159e-05/0.3453, allocations: 15.94 kB / 1.071 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.377e-05/0.3453, allocations: 19.95 kB / 1.071 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.414e-05/0.3454, allocations: 4 kB / 1.071 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004382/0.3458, allocations: 319.4 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.599e-05/0.3458, allocations: 7.938 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.959e-05/0.3459, allocations: 15.97 kB / 1.071 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002987/0.3462, allocations: 187.7 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3462, allocations: 4 kB / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3462, allocations: 0 / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.3462, allocations: 0 / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005337/0.3467, allocations: 379.6 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.3468, allocations: 12.03 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004788/0.3472, allocations: 64.84 kB / 1.072 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.3474, allocations: 172.3 kB / 1.072 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.3474, allocations: 4.359 kB / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.199e-05/0.3474, allocations: 384 / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.3477, allocations: 89.88 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3478, allocations: 0 / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.3478, allocations: 4 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3478, allocations: 4 kB / 1.072 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004291/0.3482, allocations: 83.91 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005923/0.3488, allocations: 304.8 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/0.3492, allocations: 98.48 kB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/0.3495, allocations: 52.86 kB / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.3495, allocations: 7.938 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.3495, allocations: 30.56 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.453e-06/0.3495, allocations: 3.938 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.000765/0.3503, allocations: 169.6 kB / 1.073 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.3503, allocations: 51.41 kB / 1.073 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.164e-05/0.3504, allocations: 105.8 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.3504, allocations: 25.7 kB / 1.073 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.89e-05/0.3505, allocations: 80.14 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.3505, allocations: 7.906 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.97e-05/0.3506, allocations: 13.72 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3507, allocations: 314.8 kB / 1.073 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002136/0.3509, allocations: 51.98 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.3511, allocations: 47.89 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000396/0.3515, allocations: 92.77 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3515, allocations: 0 / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004556/0.352, allocations: 121.6 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.352, allocations: 4 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.352, allocations: 0 / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.352, allocations: 7.938 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.3522, allocations: 20.22 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3522, allocations: 4.031 kB / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.3523, allocations: 23.98 kB / 1.073 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.3524, allocations: 0 / 1.073 GB, free: 4.789 MB / 0.8262 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 (2): * Single equations (assignments): 2 * 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.528e-05/0.3525, allocations: 118.2 kB / 1.074 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.001e-05/0.3525, allocations: 7.906 kB / 1.074 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.414e-05/0.3525, allocations: 7.125 kB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.3525, allocations: 4 kB / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3525, allocations: 0 / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3526, allocations: 0 / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.3528, allocations: 169.6 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3528, allocations: 0 / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.3529, allocations: 23.97 kB / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3529, allocations: 0 / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.3529, allocations: 4 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3529, allocations: 0 / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.353, allocations: 4 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000494/0.3535, allocations: 215.4 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.213e-05/0.3535, allocations: 85.11 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.805e-05/0.3535, allocations: 0 / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.3537, allocations: 15.97 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.3537, allocations: 7.938 kB / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.3538, allocations: 4.031 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.863e-05/0.3538, allocations: 83.27 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3538, allocations: 0 / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002427/0.354, allocations: 19.94 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0001752/0.3542, allocations: 103.2 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004738/0.3547, allocations: 95.89 kB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3547, allocations: 0 / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.355, allocations: 52.02 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.3553, allocations: 11.58 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005588/0.3558, allocations: 168.3 kB / 1.075 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.3561, allocations: 0.6768 MB / 1.075 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.742e-05/0.3562, allocations: 15.94 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.3563, allocations: 15.42 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3563, allocations: 0 / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of Templates: time 0.002967/0.3592, allocations: 0.8095 MB / 1.076 GB, free: 1.949 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_InverseXRegularized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.InverseXRegularized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches