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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.023/2.023, allocations: 387.1 MB / 399.7 MB, free: 9.508 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000993/0.000993, allocations: 169 kB / 492.3 MB, free: 0.625 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 221.3 MB / 0.7872 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007607/0.0007608, allocations: 97.8 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.557e-05/2.558e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2097, allocations: 142.4 MB / 1.213 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6849/0.8946, allocations: 149.7 MB / 1.359 GB, free: 18.82 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/0.8949, allocations: 81.72 kB / 1.359 GB, free: 18.82 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006678/0.9016, allocations: 2.407 MB / 1.361 GB, free: 34.39 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.182e-06/0.9016, allocations: 3.938 kB / 1.361 GB, free: 34.39 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.9016, allocations: 0 / 1.361 GB, free: 34.39 MB / 0.8386 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.0002637/0.9019, allocations: 343.6 kB / 1.362 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.902, allocations: 13.25 kB / 1.362 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.734e-05/0.902, allocations: 38.22 kB / 1.362 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.374e-05/0.902, allocations: 4.688 kB / 1.362 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.148e-05/0.9021, allocations: 172.6 kB / 1.362 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.9021, allocations: 7.812 kB / 1.362 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.9021, allocations: 11.06 kB / 1.362 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.479e-05/0.9022, allocations: 53.14 kB / 1.362 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.9022, allocations: 0 / 1.362 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.9023, allocations: 0 / 1.362 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.9023, allocations: 7.891 kB / 1.362 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.558e-05/0.9023, allocations: 26.62 kB / 1.362 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001275/0.9025, allocations: 164.7 kB / 1.362 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.373e-05/0.9026, allocations: 60.73 kB / 1.362 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.261e-05/0.9026, allocations: 23.91 kB / 1.362 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003008/0.9029, allocations: 0.5538 MB / 1.363 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.384e-05/0.9029, allocations: 30.56 kB / 1.363 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.213e-06/0.9029, allocations: 0 / 1.363 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17): time 0.01361/0.9166, allocations: 3.68 MB / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.9166, allocations: 63.11 kB / 1.366 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.925e-05/0.9167, allocations: 85 kB / 1.366 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.594e-05/0.9168, allocations: 32.95 kB / 1.366 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.233e-05/0.9168, allocations: 80.14 kB / 1.366 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.324e-05/0.9169, allocations: 59.56 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.297e-05/0.9169, allocations: 2.312 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.372e-05/0.917, allocations: 315.8 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.9174, allocations: 303.9 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003949/0.9178, allocations: 306.5 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006216/0.9185, allocations: 370.2 kB / 1.368 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.9185, allocations: 0 / 1.368 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001236/0.9197, allocations: 0.7809 MB / 1.369 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.9197, allocations: 3.875 kB / 1.369 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.9197, allocations: 0 / 1.369 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.9198, allocations: 0 / 1.369 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007452/0.9205, allocations: 90.91 kB / 1.369 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.9205, allocations: 3.953 kB / 1.369 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004877/0.921, allocations: 14.25 kB / 1.369 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.31e-05/0.9211, allocations: 40.41 kB / 1.369 GB, free: 31.21 MB / 0.8386 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 () * 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.0001522/0.9213, allocations: 114.8 kB / 1.369 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.485e-05/0.9213, allocations: 7.75 kB / 1.369 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002909/0.9242, allocations: 1.373 MB / 1.37 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.9243, allocations: 6.328 kB / 1.37 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.9243, allocations: 0 / 1.37 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.9243, allocations: 7.797 kB / 1.37 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002303/0.9266, allocations: 1.785 MB / 1.372 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.9266, allocations: 3.688 kB / 1.372 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007515/0.9274, allocations: 111.8 kB / 1.372 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.9274, allocations: 0 / 1.372 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.433e-05/0.9275, allocations: 26.09 kB / 1.372 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.9275, allocations: 3.719 kB / 1.372 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.9275, allocations: 4.031 kB / 1.372 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.9293, allocations: 1.447 MB / 1.373 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.952e-05/0.9293, allocations: 88.77 kB / 1.374 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.109e-05/0.9294, allocations: 3.188 kB / 1.374 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004835/0.9299, allocations: 16.84 kB / 1.374 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.93, allocations: 50.56 kB / 1.374 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.406e-05/0.9301, allocations: 30.03 kB / 1.374 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.785e-05/0.9301, allocations: 75.28 kB / 1.374 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9301, allocations: 0 / 1.374 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000541/0.9307, allocations: 214.1 kB / 1.374 GB, free: 30.01 MB / 0.8386 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 () * 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.002469/0.9332, allocations: 2.214 MB / 1.376 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009421/0.9341, allocations: 0.7041 MB / 1.377 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.9341, allocations: 0 / 1.377 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004842/0.9346, allocations: 442 kB / 1.377 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.9348, allocations: 10.17 kB / 1.377 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.938, allocations: 0.8496 MB / 1.378 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.9382, allocations: 0.7196 MB / 1.379 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.001288/0.9395, allocations: 301.8 kB / 1.379 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005188/0.9401, allocations: 113.4 kB / 1.379 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of SimCode: time 3.4e-07/0.9401, allocations: 0 / 1.379 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.9616, allocations: 11.51 MB / 1.39 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/0.9618, allocations: 175.7 kB / 1.391 GB, free: 25.28 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/2.616, allocations: 4 kB / 1.391 GB, free: 25.28 MB / 0.8386 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