Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.InverseXRegularized,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_InverseXRegularized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.InverseXRegularized,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_InverseXRegularized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, 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.001234/0.001234, 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.335/1.335, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.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.324/2.324, allocations: 390.3 MB / 0.6647 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 67.89 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5912/0.5927, allocations: 140.4 MB / 0.9497 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.InverseXRegularized): time 0.00263/0.5954, allocations: 1.429 MB / 0.9511 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.5966, allocations: 0.7883 MB / 0.9519 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.674e-05/0.5967, allocations: 0 / 0.9519 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.971e-05/0.5967, allocations: 3.938 kB / 0.9519 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.612e-05/0.5968, allocations: 5.094 kB / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004953/0.5973, allocations: 125.3 kB / 0.952 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.373e-05/0.5973, allocations: 39.17 kB / 0.952 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.5975, allocations: 6.328 kB / 0.9521 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.905e-05/0.5975, allocations: 15.27 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.983e-05/0.5976, allocations: 21.81 kB / 0.9521 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.784e-05/0.5976, allocations: 3.938 kB / 0.9521 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004618/0.5981, allocations: 325.3 kB / 0.9524 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.604e-05/0.5981, allocations: 9.406 kB / 0.9524 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.75e-05/0.5981, allocations: 18.2 kB / 0.9524 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.5984, allocations: 194.5 kB / 0.9526 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.5984, allocations: 0 / 0.9526 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5984, allocations: 0 / 0.9526 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.5984, allocations: 0 / 0.9526 GB, free: 6.918 MB / 0.7169 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.0004055/0.5988, allocations: 371.8 kB / 0.953 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.5989, allocations: 10.03 kB / 0.953 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.493e-05/0.5989, allocations: 36.22 kB / 0.953 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004337/0.5994, allocations: 71.22 kB / 0.9531 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.734e-05/0.5994, allocations: 165.5 kB / 0.9532 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.5995, allocations: 1.781 kB / 0.9532 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.5995, allocations: 5.844 kB / 0.9532 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002714/0.5998, allocations: 81.31 kB / 0.9533 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.5998, allocations: 4 kB / 0.9533 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.5998, allocations: 1.125 kB / 0.9533 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.5998, allocations: 0 / 0.9533 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004035/0.6002, allocations: 95.72 kB / 0.9534 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004656/0.6007, allocations: 297.4 kB / 0.9537 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003681/0.6011, allocations: 95.84 kB / 0.9538 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002063/0.6013, allocations: 50.88 kB / 0.9538 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.6013, allocations: 0 / 0.9538 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.446e-05/0.6013, allocations: 31.66 kB / 0.9539 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.583e-06/0.6013, allocations: 5.125 kB / 0.9539 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0007249/0.602, allocations: 176.4 kB / 0.954 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.879e-05/0.6021, allocations: 52.81 kB / 0.9541 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.992e-05/0.6021, allocations: 103.6 kB / 0.9542 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.6021, allocations: 25.7 kB / 0.9542 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.323e-05/0.6022, allocations: 87.2 kB / 0.9543 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.6022, allocations: 5.281 kB / 0.9543 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.361e-05/0.6022, allocations: 16.41 kB / 0.9543 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.857e-05/0.6023, allocations: 320.1 kB / 0.9546 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.6025, allocations: 45.23 kB / 0.9547 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.6027, allocations: 46.05 kB / 0.9547 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003751/0.6031, allocations: 92.8 kB / 0.9548 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.6031, allocations: 1.406 kB / 0.9548 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000426/0.6035, allocations: 119.3 kB / 0.9549 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.6035, allocations: 5.188 kB / 0.9549 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.6035, allocations: 5.156 kB / 0.9549 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.6036, allocations: 0 / 0.9549 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.6037, allocations: 21.25 kB / 0.9549 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.6037, allocations: 1.312 kB / 0.9549 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.6038, allocations: 13.52 kB / 0.955 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.6039, allocations: 10.39 kB / 0.955 GB, free: 4.793 MB / 0.7169 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 5.726e-05/0.6039, allocations: 118.8 kB / 0.9551 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.742e-05/0.604, allocations: 1.438 kB / 0.9551 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.649e-05/0.604, allocations: 4.156 kB / 0.9551 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.604, allocations: 0 / 0.9551 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.604, allocations: 1.5 kB / 0.9551 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.604, allocations: 0 / 0.9551 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.6041, allocations: 181.7 kB / 0.9553 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.6042, allocations: 7.875 kB / 0.9553 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001336/0.6043, allocations: 25.91 kB / 0.9553 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.6043, allocations: 0 / 0.9553 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.6043, allocations: 1.219 kB / 0.9553 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.6043, allocations: 0 / 0.9553 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.6043, allocations: 1.25 kB / 0.9553 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004475/0.6048, allocations: 223 kB / 0.9555 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.651e-05/0.6048, allocations: 78.48 kB / 0.9556 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.6048, allocations: 4.031 kB / 0.9556 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.605, allocations: 19.09 kB / 0.9556 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.361e-05/0.605, allocations: 5.25 kB / 0.9556 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.605, allocations: 1.281 kB / 0.9556 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.105e-05/0.6051, allocations: 82.86 kB / 0.9557 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6051, allocations: 0 / 0.9557 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002305/0.6053, allocations: 14.84 kB / 0.9557 GB, free: 4.055 MB / 0.7169 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.0006232/0.6059, allocations: 0.7643 MB / 0.9565 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004438/0.6064, allocations: 91.92 kB / 0.9565 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.6064, allocations: 4 kB / 0.9565 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002095/0.6066, allocations: 56.2 kB / 0.9566 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.6069, allocations: 3.875 kB / 0.9566 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006181/0.6075, allocations: 202.1 kB / 0.9568 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.295e-05/0.6076, allocations: 0.6852 MB / 0.9575 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.143e-05/0.6077, allocations: 11.55 kB / 0.9575 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.6077, allocations: 17.81 kB / 0.9575 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.6078, allocations: 0 / 0.9575 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.6245, allocations: 1.655 MB / 0.9591 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.279/7.904, allocations: 3.422 kB / 0.9591 GB, free: 1.426 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Utilities_Math_Examples_InverseXRegularized.fmu > Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_InverseXRegularized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches