Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",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.0008877/0.0008877, allocations: 98.53 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.0009369/0.0009369, 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.325/1.325, allocations: 223.2 MB / 239.9 MB, free: 5.332 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.317/2.317, allocations: 390.3 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.00035, allocations: 11.98 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.663/0.6634, allocations: 142.3 MB / 0.9536 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0005489/0.664, allocations: 340.2 kB / 0.9539 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001136/0.6651, allocations: 1.23 MB / 0.9551 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.524e-05/0.6651, allocations: 0 / 0.9551 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.209e-05/0.6652, allocations: 3.938 kB / 0.9551 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.753e-05/0.6652, allocations: 0.9688 kB / 0.9551 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.6654, allocations: 55.84 kB / 0.9552 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.865e-05/0.6655, allocations: 13.05 kB / 0.9552 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.615e-05/0.6655, allocations: 6.266 kB / 0.9552 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.833e-05/0.6655, allocations: 5.594 kB / 0.9552 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.454e-05/0.6656, allocations: 16.3 kB / 0.9552 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.6656, allocations: 1.062 kB / 0.9552 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001678/0.6658, allocations: 93.58 kB / 0.9553 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.013e-05/0.6658, allocations: 13.27 kB / 0.9553 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.606e-05/0.6658, allocations: 31.17 kB / 0.9554 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.162e-05/0.6659, allocations: 48.94 kB / 0.9554 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.6659, allocations: 0 / 0.9554 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.452e-06/0.6659, allocations: 0 / 0.9554 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.046e-06/0.6659, allocations: 0 / 0.9554 GB, free: 6.598 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002755/0.6662, allocations: 338.4 kB / 0.9557 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.6663, allocations: 9.625 kB / 0.9557 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.455e-05/0.6663, allocations: 39.73 kB / 0.9558 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.281e-05/0.6663, allocations: 6.891 kB / 0.9558 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.308e-05/0.6664, allocations: 167.1 kB / 0.9559 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.6664, allocations: 2.25 kB / 0.9559 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.6664, allocations: 6.531 kB / 0.9559 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.87e-05/0.6665, allocations: 56.78 kB / 0.956 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.6665, allocations: 5.031 kB / 0.956 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.6666, allocations: 4 kB / 0.956 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.6666, allocations: 1.219 kB / 0.956 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.63e-05/0.6666, allocations: 25.75 kB / 0.956 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001162/0.6667, allocations: 173.4 kB / 0.9562 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.4e-05/0.6668, allocations: 67.2 kB / 0.9563 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003172/0.6672, allocations: 0.5568 MB / 0.9568 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.564e-05/0.6672, allocations: 31.72 kB / 0.9568 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.6672, allocations: 4 kB / 0.9568 GB, free: 4.938 MB / 0.7169 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.0184/0.6856, allocations: 4.276 MB / 0.961 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.6857, allocations: 57.31 kB / 0.9611 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.337e-05/0.6857, allocations: 91.2 kB / 0.9612 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.759e-05/0.6858, allocations: 25.7 kB / 0.9612 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.841e-05/0.6858, allocations: 93.84 kB / 0.9613 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.252e-05/0.6859, allocations: 49.55 kB / 0.9613 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.959e-05/0.686, allocations: 4 kB / 0.9613 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.256e-05/0.686, allocations: 317.1 kB / 0.9616 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004555/0.6865, allocations: 309.2 kB / 0.9619 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004438/0.6869, allocations: 310.4 kB / 0.9622 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006679/0.6876, allocations: 392.1 kB / 0.9626 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.6876, allocations: 0 / 0.9626 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00138/0.689, allocations: 0.8009 MB / 0.9634 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.689, allocations: 6.125 kB / 0.9634 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.689, allocations: 7.953 kB / 0.9634 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.6891, allocations: 0.7188 kB / 0.9634 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008191/0.6899, allocations: 92.53 kB / 0.9635 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.6899, allocations: 0.9375 kB / 0.9635 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005287/0.6904, allocations: 10.03 kB / 0.9635 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-05/0.6905, allocations: 30.55 kB / 0.9635 GB, free: 0.9219 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 (18): * Single equations (assignments): 18 * 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 0.0001787/0.6907, allocations: 121.8 kB / 0.9636 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.001e-05/0.6908, allocations: 3.094 kB / 0.9636 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003174/0.694, allocations: 1.41 MB / 0.965 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.694, allocations: 8.234 kB / 0.965 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.694, allocations: 0 / 0.965 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.694, allocations: 0 / 0.965 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002863/0.6969, allocations: 1.81 MB / 0.9668 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.6969, allocations: 5.281 kB / 0.9668 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007874/0.6977, allocations: 108.8 kB / 0.9669 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/0.6977, allocations: 5.953 kB / 0.9669 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.881e-05/0.6978, allocations: 25.59 kB / 0.9669 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.6978, allocations: 2.312 kB / 0.9669 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.6978, allocations: 0 / 0.9669 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00271/0.7005, allocations: 1.491 MB / 0.9684 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.422e-05/0.7006, allocations: 89.95 kB / 0.9685 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.568e-05/0.7007, allocations: 10.25 kB / 0.9685 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005402/0.7013, allocations: 10.62 kB / 0.9685 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.7014, allocations: 46.34 kB / 0.9685 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.889e-05/0.7015, allocations: 33.92 kB / 0.9686 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.965e-05/0.7016, allocations: 76.38 kB / 0.9686 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.7016, allocations: 5 kB / 0.9686 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007992/0.7024, allocations: 178.8 kB / 0.9688 GB, free: 13.56 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * 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 (40): * Single equations (assignments): 40 * 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.003373/0.7058, allocations: 2.203 MB / 0.971 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00139/0.7072, allocations: 0.7207 MB / 0.9717 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.7072, allocations: 4 kB / 0.9717 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007671/0.708, allocations: 454.4 kB / 0.9721 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.7082, allocations: 7.75 kB / 0.9721 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005543/0.7137, allocations: 2.143 MB / 0.9742 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.714, allocations: 0.72 MB / 0.9749 GB, free: 9.477 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001457/0.7155, allocations: 296.8 kB / 0.9752 GB, free: 9.246 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005484/0.7161, allocations: 119.4 kB / 0.9753 GB, free: 9.129 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/0.7161, allocations: 0 / 0.9753 GB, free: 9.129 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.74, allocations: 11.65 MB / 0.9867 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.7402, allocations: 203 kB / 0.9869 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/2.617, allocations: 0 / 0.9869 GB, free: 13.47 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat does not exist to compare? outputFormat=mat