Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7337/0.7337, allocations: 133.4 MB / 146.7 MB, free: 10.78 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.754/1.754, allocations: 221.3 MB / 400.4 MB, free: 5.875 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009209/0.0009209, allocations: 101 kB / 483.3 MB, free: 5.922 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.635e-05/4.645e-05, allocations: 12.94 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1796, allocations: 82.3 MB / 0.6405 GB, free: 7.754 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5962/0.7758, allocations: 111.8 MB / 0.7497 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.776, allocations: 78.36 kB / 0.7498 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.006442/0.7825, allocations: 2.381 MB / 0.7521 GB, free: 27.43 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7825, allocations: 0 / 0.7521 GB, free: 27.43 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.466e-06/0.7825, allocations: 3.969 kB / 0.7521 GB, free: 27.43 MB / 0.5105 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.0003338/0.7828, allocations: 358.2 kB / 0.7525 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.7829, allocations: 7.688 kB / 0.7525 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.104e-05/0.7829, allocations: 33.44 kB / 0.7525 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.498e-05/0.783, allocations: 7.812 kB / 0.7525 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.7831, allocations: 169.8 kB / 0.7527 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.7831, allocations: 6.875 kB / 0.7527 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.7831, allocations: 0 / 0.7527 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.7833, allocations: 53.02 kB / 0.7527 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.7833, allocations: 0 / 0.7527 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.7833, allocations: 4 kB / 0.7527 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.7833, allocations: 0 / 0.7527 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.072e-05/0.7834, allocations: 24.48 kB / 0.7527 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.7835, allocations: 169.4 kB / 0.7529 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.7837, allocations: 60.72 kB / 0.753 GB, free: 26.56 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.467e-05/0.7837, allocations: 26.73 kB / 0.753 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004378/0.7841, allocations: 0.5594 MB / 0.7535 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.7842, allocations: 33.88 kB / 0.7536 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.7842, allocations: 0 / 0.7536 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of matching and sorting (n=17): time 0.01401/0.7982, allocations: 3.633 MB / 0.7571 GB, free: 24.94 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.7983, allocations: 62.52 kB / 0.7572 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.438e-05/0.7984, allocations: 88.28 kB / 0.7573 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.244e-05/0.7985, allocations: 32.55 kB / 0.7573 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.203e-05/0.7985, allocations: 88.2 kB / 0.7574 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.497e-05/0.7986, allocations: 48.33 kB / 0.7574 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.447e-05/0.7987, allocations: 7.219 kB / 0.7574 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.7988, allocations: 317.3 kB / 0.7577 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.7992, allocations: 298.9 kB / 0.758 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004155/0.7997, allocations: 301.3 kB / 0.7583 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006285/0.8003, allocations: 367.1 kB / 0.7587 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.8003, allocations: 0 / 0.7587 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001291/0.8016, allocations: 0.7648 MB / 0.7594 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.8016, allocations: 8.938 kB / 0.7594 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.8016, allocations: 0 / 0.7594 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.8017, allocations: 3.844 kB / 0.7594 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000766/0.8024, allocations: 92.25 kB / 0.7595 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.8025, allocations: 7.688 kB / 0.7595 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005099/0.803, allocations: 7.828 kB / 0.7595 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.157e-05/0.8031, allocations: 37.28 kB / 0.7596 GB, free: 24.26 MB / 0.5105 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.0001899/0.8033, allocations: 111.7 kB / 0.7597 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.235e-05/0.8033, allocations: 7.75 kB / 0.7597 GB, free: 24.15 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.8064, allocations: 1.368 MB / 0.761 GB, free: 23.99 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.8064, allocations: 3.531 kB / 0.761 GB, free: 23.99 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.8064, allocations: 0 / 0.761 GB, free: 23.99 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-06/0.8064, allocations: 4.203 kB / 0.761 GB, free: 23.99 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003733/0.8102, allocations: 1.781 MB / 0.7627 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.8102, allocations: 0 / 0.7627 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.8114, allocations: 109.9 kB / 0.7629 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.254e-05/0.8114, allocations: 3.953 kB / 0.7629 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.8115, allocations: 29.41 kB / 0.7629 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.8115, allocations: 3.938 kB / 0.7629 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.8115, allocations: 6.875 kB / 0.7629 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00329/0.8148, allocations: 1.433 MB / 0.7643 GB, free: 23.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.013e-05/0.8149, allocations: 96.62 kB / 0.7644 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.8151, allocations: 10.72 kB / 0.7644 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007647/0.8158, allocations: 11.19 kB / 0.7644 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.816, allocations: 43.02 kB / 0.7644 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001189/0.8162, allocations: 32.31 kB / 0.7645 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 6.227e-05/0.8162, allocations: 75.28 kB / 0.7645 GB, free: 23.11 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2e-07/0.8163, allocations: 160 / 0.7645 GB, free: 23.11 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001046/0.8173, allocations: 212.2 kB / 0.7648 GB, free: 23.06 MB / 0.5105 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.004314/0.8216, allocations: 2.193 MB / 0.7669 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001681/0.8233, allocations: 0.7063 MB / 0.7676 GB, free: 22.15 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.8234, allocations: 4 kB / 0.7676 GB, free: 22.15 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008277/0.8242, allocations: 436.2 kB / 0.768 GB, free: 22.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.8245, allocations: 14.09 kB / 0.768 GB, free: 22.13 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005166/0.8297, allocations: 0.8299 MB / 0.7688 GB, free: 21.89 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/0.8301, allocations: 0.725 MB / 0.7695 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002502/0.8326, allocations: 302.8 kB / 0.7698 GB, free: 21.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008789/0.8335, allocations: 120.4 kB / 0.7699 GB, free: 21 MB / 0.5105 GB Notification: Performance of SimCode: time 1.112e-06/0.8335, allocations: 3.938 kB / 0.7699 GB, free: 20.99 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03451/0.868, allocations: 11.46 MB / 0.7811 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002952/0.8684, allocations: 166.7 kB / 0.7813 GB, free: 11.08 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/2.536, allocations: 2.109 kB / 0.7813 GB, free: 11.08 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)