Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.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.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",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.001194/0.001194, allocations: 99.86 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.001433/0.001434, allocations: 177.3 kB / 15.95 MB, free: 216 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.326/1.326, allocations: 223.2 MB / 239.9 MB, free: 5.453 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.337/2.337, allocations: 390.3 MB / 0.6653 GB, free: 3 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003642, allocations: 12 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7058/0.7062, allocations: 142.3 MB / 0.9536 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.0005652/0.7068, allocations: 314.4 kB / 0.9539 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001083/0.7079, allocations: 1.192 MB / 0.9551 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.508e-06/0.7079, allocations: 0 / 0.9551 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.677e-06/0.7079, allocations: 4 kB / 0.9551 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.947e-06/0.7079, allocations: 1.531 kB / 0.9551 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.7081, allocations: 46.28 kB / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 2.803e-05/0.7082, allocations: 0 / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.448e-05/0.7082, allocations: 1.156 kB / 0.9551 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.24e-05/0.7082, allocations: 9.188 kB / 0.9551 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.696e-05/0.7083, allocations: 1.125 kB / 0.9551 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.841e-06/0.7083, allocations: 0 / 0.9551 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.7085, allocations: 91.2 kB / 0.9552 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.149e-06/0.7085, allocations: 0 / 0.9552 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.32e-05/0.7085, allocations: 30.98 kB / 0.9552 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.612e-05/0.7086, allocations: 38.59 kB / 0.9553 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.7086, allocations: 0 / 0.9553 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.643e-06/0.7086, allocations: 0 / 0.9553 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.896e-06/0.7086, allocations: 0 / 0.9553 GB, free: 6.789 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0001656/0.7088, allocations: 323.6 kB / 0.9556 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.7088, allocations: 10 kB / 0.9556 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.227e-05/0.7088, allocations: 34.55 kB / 0.9556 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.704e-05/0.7089, allocations: 9.281 kB / 0.9556 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.65e-05/0.7089, allocations: 163.1 kB / 0.9558 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.823e-06/0.7089, allocations: 0 / 0.9558 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.193e-06/0.7089, allocations: 1.406 kB / 0.9558 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.083e-05/0.709, allocations: 31.05 kB / 0.9558 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.52e-06/0.709, allocations: 0 / 0.9558 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.76e-06/0.709, allocations: 0 / 0.9558 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.709, allocations: 5.375 kB / 0.9558 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.65e-05/0.7091, allocations: 5.266 kB / 0.9558 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.878e-05/0.7092, allocations: 150.8 kB / 0.956 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.702e-05/0.7092, allocations: 21.11 kB / 0.956 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003678/0.7096, allocations: 0.5604 MB / 0.9565 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.265e-05/0.7096, allocations: 39.41 kB / 0.9566 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.7096, allocations: 0 / 0.9566 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 9.898e-05/0.7097, allocations: 35.98 kB / 0.9566 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.747e-05/0.7097, allocations: 51.41 kB / 0.9567 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.401e-05/0.7097, allocations: 89.86 kB / 0.9568 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.651e-06/0.7097, allocations: 26.64 kB / 0.9568 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.987e-06/0.7098, allocations: 80.14 kB / 0.9569 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.7098, allocations: 4.938 kB / 0.9569 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/0.7098, allocations: 0 / 0.9569 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.767e-05/0.7098, allocations: 327.7 kB / 0.9572 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.635e-06/0.7098, allocations: 5.094 kB / 0.9572 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.07e-06/0.7099, allocations: 0.9062 kB / 0.9572 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.424e-05/0.7099, allocations: 5.781 kB / 0.9572 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.7099, allocations: 0 / 0.9572 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 3.923e-05/0.7099, allocations: 30.98 kB / 0.9572 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.7099, allocations: 6.031 kB / 0.9572 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.7099, allocations: 0.8125 kB / 0.9572 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.757e-06/0.71, allocations: 0 / 0.9572 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.591e-05/0.71, allocations: 1.938 kB / 0.9572 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.71, allocations: 1.188 kB / 0.9572 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.718e-06/0.71, allocations: 4 kB / 0.9572 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-06/0.71, allocations: 5.109 kB / 0.9572 GB, free: 4.512 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 (1): * Single equations (assignments): 1 * 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 3.81e-05/0.7101, allocations: 110.9 kB / 0.9573 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.25e-06/0.7101, allocations: 0 / 0.9573 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.879e-05/0.7102, allocations: 45.27 kB / 0.9574 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.7102, allocations: 0 / 0.9574 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.7102, allocations: 4.812 kB / 0.9574 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.7102, allocations: 3.984 kB / 0.9574 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.597e-05/0.7103, allocations: 146.6 kB / 0.9575 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.7103, allocations: 0.9688 kB / 0.9575 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.413e-05/0.7103, allocations: 5.875 kB / 0.9575 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.7103, allocations: 0 / 0.9575 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.26e-06/0.7103, allocations: 0.9688 kB / 0.9575 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.7103, allocations: 0 / 0.9575 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.7103, allocations: 1.406 kB / 0.9575 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.512e-05/0.7103, allocations: 66.61 kB / 0.9576 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.312e-05/0.7104, allocations: 78.08 kB / 0.9577 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.536e-06/0.7104, allocations: 7.875 kB / 0.9577 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.946e-06/0.7104, allocations: 1.062 kB / 0.9577 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.119e-05/0.7104, allocations: 1.875 kB / 0.9577 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-06/0.7104, allocations: 0 / 0.9577 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.019e-05/0.7104, allocations: 75.28 kB / 0.9578 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7104, allocations: 0 / 0.9578 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001896/0.7106, allocations: 9.172 kB / 0.9578 GB, free: 3.891 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 (1): * Single equations (assignments): 1 * 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.0002386/0.7109, allocations: 0.6062 MB / 0.9584 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.728e-05/0.7109, allocations: 11.19 kB / 0.9584 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.7109, allocations: 1.219 kB / 0.9584 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.344e-06/0.711, allocations: 6.406 kB / 0.9584 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.413e-05/0.711, allocations: 1.031 kB / 0.9584 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002383/0.7113, allocations: 104.2 kB / 0.9585 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.7114, allocations: 0.6713 MB / 0.9591 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.221e-05/0.7114, allocations: 2.125 kB / 0.9591 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.274e-05/0.7114, allocations: 7.438 kB / 0.9591 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7115, allocations: 0 / 0.9591 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01019/0.7216, allocations: 0.8327 MB / 0.96 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001244/0.7218, allocations: 192.2 kB / 0.9601 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.492/2.213, allocations: 0 / 0.9601 GB, free: 1.809 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat does not exist to compare? outputFormat=mat