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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001182/0.001182, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001413/0.001413, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.496/2.496, allocations: 390.3 MB / 0.6653 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003512, allocations: 8 kB / 0.8146 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8419/0.8423, allocations: 142.3 MB / 0.9536 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.InverseXRegularized): time 0.002013/0.8444, allocations: 1.147 MB / 0.9547 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001272/0.8457, allocations: 0.7304 MB / 0.9554 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.06e-05/0.8458, allocations: 0 / 0.9554 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.8458, allocations: 0 / 0.9554 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.216e-05/0.8459, allocations: 13.72 kB / 0.9554 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000519/0.8464, allocations: 92.88 kB / 0.9555 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.033e-05/0.8465, allocations: 26.67 kB / 0.9555 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.003e-05/0.8466, allocations: 2.938 kB / 0.9556 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.503e-05/0.8466, allocations: 10.48 kB / 0.9556 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.097e-05/0.8467, allocations: 23.02 kB / 0.9556 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.8467, allocations: 0.9062 kB / 0.9556 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005887/0.8473, allocations: 310 kB / 0.9559 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.134e-05/0.8474, allocations: 5.312 kB / 0.9559 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.775e-05/0.8474, allocations: 31.08 kB / 0.9559 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003671/0.8478, allocations: 144.9 kB / 0.9561 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.8478, allocations: 3.938 kB / 0.9561 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.867e-06/0.8478, allocations: 1.062 kB / 0.9561 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.8478, allocations: 0 / 0.9561 GB, free: 6.223 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.0006383/0.8485, allocations: 378 kB / 0.9564 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/0.8485, allocations: 10.06 kB / 0.9564 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.399e-05/0.8486, allocations: 30.56 kB / 0.9565 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005031/0.8491, allocations: 82.73 kB / 0.9565 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.8492, allocations: 164.6 kB / 0.9567 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.8493, allocations: 9.062 kB / 0.9567 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.8493, allocations: 1.438 kB / 0.9567 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003288/0.8496, allocations: 96.41 kB / 0.9568 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.8496, allocations: 0 / 0.9568 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.8496, allocations: 4 kB / 0.9568 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.8497, allocations: 4.984 kB / 0.9568 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004439/0.8501, allocations: 124.7 kB / 0.9569 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/0.8506, allocations: 291.5 kB / 0.9572 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003865/0.851, allocations: 120.4 kB / 0.9573 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.8511, allocations: 1.031 kB / 0.9573 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.8511, allocations: 35.58 kB / 0.9573 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.673e-06/0.8511, allocations: 0 / 0.9573 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000792/0.8519, allocations: 206.2 kB / 0.9575 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.106e-05/0.8519, allocations: 51.41 kB / 0.9576 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.794e-05/0.852, allocations: 101.2 kB / 0.9577 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.852, allocations: 29.7 kB / 0.9577 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.471e-05/0.8521, allocations: 86.33 kB / 0.9578 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.8521, allocations: 3.906 kB / 0.9578 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.8521, allocations: 0 / 0.9578 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.495e-05/0.8522, allocations: 321.1 kB / 0.9581 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.8524, allocations: 62.3 kB / 0.9582 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.8526, allocations: 57.3 kB / 0.9582 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.8529, allocations: 54.89 kB / 0.9583 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.8529, allocations: 0 / 0.9583 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004639/0.8533, allocations: 146.4 kB / 0.9584 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.8534, allocations: 9.406 kB / 0.9584 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.8534, allocations: 3.984 kB / 0.9584 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.8534, allocations: 5.266 kB / 0.9584 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.8536, allocations: 26.66 kB / 0.9585 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.8536, allocations: 0 / 0.9585 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.8537, allocations: 24.17 kB / 0.9585 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.8537, allocations: 5.203 kB / 0.9585 GB, free: 4.141 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.171e-05/0.8538, allocations: 107.1 kB / 0.9586 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.8538, allocations: 5.344 kB / 0.9586 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.32e-05/0.8539, allocations: 12.16 kB / 0.9586 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.8539, allocations: 5.359 kB / 0.9586 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.8539, allocations: 4 kB / 0.9586 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.8539, allocations: 0 / 0.9586 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.854, allocations: 174 kB / 0.9588 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.8541, allocations: 4 kB / 0.9588 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.8542, allocations: 27.72 kB / 0.9588 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.8542, allocations: 0 / 0.9588 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.8542, allocations: 5.125 kB / 0.9588 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.8542, allocations: 0 / 0.9588 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.8542, allocations: 5.141 kB / 0.9588 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004787/0.8547, allocations: 241.3 kB / 0.9591 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.147e-05/0.8547, allocations: 77.11 kB / 0.9591 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.8548, allocations: 1.938 kB / 0.9591 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.8549, allocations: 26.41 kB / 0.9592 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.227e-05/0.855, allocations: 6.203 kB / 0.9592 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.855, allocations: 5.438 kB / 0.9592 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.951e-05/0.855, allocations: 90.3 kB / 0.9593 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.855, allocations: 1.781 kB / 0.9593 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002581/0.8553, allocations: 14.34 kB / 0.9593 GB, free: 3.395 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008449/0.8561, allocations: 0.7814 MB / 0.96 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005315/0.8567, allocations: 123.5 kB / 0.9601 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.8567, allocations: 1.375 kB / 0.9601 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.8569, allocations: 62.45 kB / 0.9602 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.8572, allocations: 2.75 kB / 0.9602 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007212/0.8579, allocations: 218.8 kB / 0.9604 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.858, allocations: 0.6785 MB / 0.9611 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.119e-05/0.8581, allocations: 8.125 kB / 0.9611 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.566e-05/0.8582, allocations: 12.81 kB / 0.9611 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of SimCode: time 1.91e-07/0.8582, allocations: 0 / 0.9611 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01283/0.871, allocations: 1.379 MB / 0.9624 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/0.8712, allocations: 190.3 kB / 0.9626 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/2.6, allocations: 0 / 0.9626 GB, free: 0.8086 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_InverseXRegularized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_InverseXRegularized.fmu > Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.InverseXRegularized_res.mat does not exist to compare? outputFormat=mat