Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.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.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",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.0007802/0.0007803, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.0007953/0.0007953, allocations: 168.7 kB / 15.95 MB, free: 204 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.276/1.276, allocations: 223.3 MB / 240 MB, free: 5.418 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.273/2.273, allocations: 390.4 MB / 0.6655 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003036, allocations: 11.94 kB / 0.8149 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5433/0.5437, allocations: 142.3 MB / 0.9539 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.00124/0.5449, allocations: 1.143 MB / 0.955 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009528/0.5459, allocations: 0.7243 MB / 0.9557 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.598e-05/0.5459, allocations: 1.438 kB / 0.9557 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.629e-05/0.546, allocations: 3.984 kB / 0.9557 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.059e-05/0.546, allocations: 1.406 kB / 0.9557 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.5465, allocations: 138 kB / 0.9558 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.812e-05/0.5466, allocations: 30.2 kB / 0.9559 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.247e-05/0.5467, allocations: 6.797 kB / 0.9559 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.431e-05/0.5467, allocations: 11.06 kB / 0.9559 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.573e-05/0.5468, allocations: 21.09 kB / 0.9559 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.5468, allocations: 3.25 kB / 0.9559 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002718/0.5471, allocations: 180.2 kB / 0.9561 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.006e-05/0.5471, allocations: 16.39 kB / 0.9561 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.642e-05/0.5471, allocations: 28.05 kB / 0.9561 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001762/0.5473, allocations: 121.8 kB / 0.9562 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.5473, allocations: 1.125 kB / 0.9562 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5473, allocations: 0 / 0.9562 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.5474, allocations: 0 / 0.9562 GB, free: 6.32 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003467/0.5477, allocations: 439.5 kB / 0.9567 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.5477, allocations: 9.844 kB / 0.9567 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.58e-05/0.5478, allocations: 35.66 kB / 0.9567 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.5478, allocations: 10.06 kB / 0.9567 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.458e-05/0.5479, allocations: 174.2 kB / 0.9569 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.5479, allocations: 1.188 kB / 0.9569 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.5479, allocations: 2.5 kB / 0.9569 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001614/0.5481, allocations: 80.25 kB / 0.957 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.5481, allocations: 0 / 0.957 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.5481, allocations: 5.094 kB / 0.957 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.5481, allocations: 1.219 kB / 0.957 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00011/0.5482, allocations: 60.05 kB / 0.957 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002983/0.5485, allocations: 273.5 kB / 0.9573 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.5487, allocations: 58.55 kB / 0.9573 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.766e-05/0.5487, allocations: 48.14 kB / 0.9574 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.5488, allocations: 1.094 kB / 0.9574 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.396e-05/0.5488, allocations: 35.77 kB / 0.9574 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.5488, allocations: 0 / 0.9574 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003522/0.5491, allocations: 197.8 kB / 0.9576 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.5492, allocations: 83.3 kB / 0.9577 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.637e-05/0.5493, allocations: 122.8 kB / 0.9578 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.298e-06/0.5493, allocations: 27.08 kB / 0.9578 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.665e-05/0.5493, allocations: 86.95 kB / 0.9579 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.356e-05/0.5493, allocations: 9.203 kB / 0.9579 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-06/0.5493, allocations: 1.344 kB / 0.9579 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.518e-05/0.5494, allocations: 316.2 kB / 0.9582 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.544e-05/0.5495, allocations: 61.84 kB / 0.9583 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.676e-05/0.5496, allocations: 62.89 kB / 0.9583 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001008/0.5497, allocations: 116.6 kB / 0.9584 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5497, allocations: 3.938 kB / 0.9585 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002431/0.5499, allocations: 223.6 kB / 0.9587 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.55, allocations: 62.95 kB / 0.9587 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.55, allocations: 5.312 kB / 0.9587 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.55, allocations: 3.953 kB / 0.9587 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.093e-05/0.5501, allocations: 4.531 kB / 0.9587 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.5501, allocations: 0 / 0.9587 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.577e-05/0.5501, allocations: 14.8 kB / 0.9588 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.5501, allocations: 6.906 kB / 0.9588 GB, free: 3.969 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: 1 (cubSpl.i) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * 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.411e-05/0.5502, allocations: 138.5 kB / 0.9589 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.5502, allocations: 15.06 kB / 0.9589 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.704e-05/0.5503, allocations: 9.344 kB / 0.9589 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.5503, allocations: 5.672 kB / 0.9589 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5503, allocations: 3.953 kB / 0.9589 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.5503, allocations: 0 / 0.9589 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.5504, allocations: 170.8 kB / 0.9591 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.5504, allocations: 0 / 0.9591 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.783e-05/0.5504, allocations: 5.438 kB / 0.9591 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.5504, allocations: 0 / 0.9591 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-06/0.5505, allocations: 1.812 kB / 0.9591 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5505, allocations: 0 / 0.9591 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.5505, allocations: 4 kB / 0.9591 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.5507, allocations: 266.9 kB / 0.9594 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.538e-05/0.5507, allocations: 82.23 kB / 0.9594 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.5507, allocations: 1.406 kB / 0.9594 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.81e-05/0.5508, allocations: 6.125 kB / 0.9594 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.568e-05/0.5509, allocations: 10.77 kB / 0.9594 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.5509, allocations: 1.375 kB / 0.9594 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.989e-05/0.551, allocations: 102.7 kB / 0.9595 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.551, allocations: 0 / 0.9595 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003128/0.5513, allocations: 57.48 kB / 0.9596 GB, free: 3.156 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: 1 (cubSpl.i) * Number of discrete states: 1 (cubSpl.i) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0004924/0.5518, allocations: 0.8347 MB / 0.9604 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000259/0.5521, allocations: 243.8 kB / 0.9606 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.5521, allocations: 0 / 0.9606 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.5522, allocations: 105.3 kB / 0.9607 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.5524, allocations: 11.64 kB / 0.9608 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000976/0.5534, allocations: 0.7329 MB / 0.9615 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.203e-05/0.5535, allocations: 0.6859 MB / 0.9621 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.355e-05/0.5535, allocations: 1.031 kB / 0.9621 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.5535, allocations: 12.47 kB / 0.9622 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of SimCode: time 1.102e-06/0.5535, allocations: 0 / 0.9622 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0119/0.5654, allocations: 2.545 MB / 0.9646 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.5656, allocations: 227.4 kB / 0.9649 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.532/2.098, allocations: 0 / 0.9649 GB, free: 15.47 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.mat does not exist to compare? outputFormat=mat