Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006402/0.006402, allocations: 106.9 kB / 15.74 MB, free: 5.582 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.001257/0.001257, allocations: 197.7 kB / 16.67 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002181/0.002181, allocations: 298.6 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9155/0.9155, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001754/0.001754, allocations: 99.84 kB / 0.6815 GB, free: 6.883 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.4, allocations: 86.98 MB / 0.7664 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001659/0.4017, allocations: 0.5821 MB / 0.767 GB, free: 3.281 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.4032, allocations: 1.244 MB / 0.7682 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.808e-05/0.4032, allocations: 0 / 0.7682 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.398e-05/0.4033, allocations: 3.938 kB / 0.7682 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.952e-06/0.4033, allocations: 0 / 0.7682 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.4036, allocations: 63.81 kB / 0.7683 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.262e-05/0.4037, allocations: 11.94 kB / 0.7683 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.227e-05/0.4037, allocations: 0 / 0.7683 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.243e-05/0.4037, allocations: 0 / 0.7683 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.649e-05/0.4038, allocations: 0 / 0.7683 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.933e-06/0.4038, allocations: 0 / 0.7683 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.404, allocations: 103.9 kB / 0.7684 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.315e-06/0.4041, allocations: 0 / 0.7684 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.943e-05/0.4041, allocations: 11.98 kB / 0.7684 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.4042, allocations: 43.95 kB / 0.7684 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.4042, allocations: 0 / 0.7684 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4042, allocations: 3.938 kB / 0.7684 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.366e-06/0.4042, allocations: 4 kB / 0.7684 GB, free: 1.777 MB / 0.5294 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.0003103/0.4046, allocations: 327.6 kB / 0.7688 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.4046, allocations: 15.97 kB / 0.7688 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.4047, allocations: 0.9375 kB / 0.7688 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.325e-05/0.4047, allocations: 160.4 kB / 0.7689 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.4048, allocations: 4.375 kB / 0.7689 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.784e-06/0.4048, allocations: 384 / 0.7689 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.104e-05/0.4049, allocations: 41.94 kB / 0.769 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.4049, allocations: 4 kB / 0.769 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.894e-06/0.4049, allocations: 0 / 0.769 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.4049, allocations: 0 / 0.769 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.035e-05/0.4049, allocations: 4 kB / 0.769 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00014/0.4051, allocations: 151.5 kB / 0.7691 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 3.45e-05/0.4051, allocations: 14.58 kB / 0.7691 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.553e-05/0.4051, allocations: 4.859 kB / 0.7691 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005416/0.4057, allocations: 0.574 MB / 0.7697 GB, free: 216 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.4057, allocations: 38.44 kB / 0.7697 GB, free: 168 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.4057, allocations: 0 / 0.7697 GB, free: 168 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001335/0.4059, allocations: 33.69 kB / 0.7698 GB, free: 128 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.4059, allocations: 51.41 kB / 0.7698 GB, free: 64 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.1e-05/0.406, allocations: 97.86 kB / 0.7699 GB, free: 15.96 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.406, allocations: 29.83 kB / 0.7699 GB, free: 15.92 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.15e-05/0.406, allocations: 80.14 kB / 0.77 GB, free: 15.84 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.406, allocations: 7.562 kB / 0.77 GB, free: 15.84 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.4061, allocations: 9.719 kB / 0.77 GB, free: 15.82 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.568e-05/0.4062, allocations: 314.8 kB / 0.7703 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.4062, allocations: 0 / 0.7703 GB, free: 15.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.531e-06/0.4062, allocations: 0 / 0.7703 GB, free: 15.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.88e-05/0.4062, allocations: 20.86 kB / 0.7704 GB, free: 15.48 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4062, allocations: 0 / 0.7704 GB, free: 15.48 MB / 0.545 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.211e-05/0.4063, allocations: 33.69 kB / 0.7704 GB, free: 15.44 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.4063, allocations: 11.94 kB / 0.7704 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4063, allocations: 0 / 0.7704 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.4063, allocations: 3.938 kB / 0.7704 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.209e-05/0.4064, allocations: 0 / 0.7704 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.4064, allocations: 0 / 0.7704 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.133e-05/0.4064, allocations: 0 / 0.7704 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.4064, allocations: 4 kB / 0.7704 GB, free: 15.42 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/0.4065, allocations: 112.3 kB / 0.7705 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-06/0.4065, allocations: 3.938 kB / 0.7705 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.101e-05/0.4066, allocations: 48.75 kB / 0.7706 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.4066, allocations: 0 / 0.7706 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.4066, allocations: 0 / 0.7706 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.4066, allocations: 0 / 0.7706 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.611e-05/0.4067, allocations: 149.6 kB / 0.7707 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4067, allocations: 32 / 0.7707 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.773e-05/0.4067, allocations: 8 kB / 0.7707 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.4068, allocations: 3.938 kB / 0.7707 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.4068, allocations: 0 / 0.7707 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.4068, allocations: 0 / 0.7707 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4068, allocations: 0 / 0.7707 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.401e-05/0.4068, allocations: 65.06 kB / 0.7708 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.381e-05/0.4069, allocations: 77.11 kB / 0.7709 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.4069, allocations: 11.97 kB / 0.7709 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-06/0.4069, allocations: 0 / 0.7709 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.221e-05/0.4069, allocations: 0 / 0.7709 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/0.4069, allocations: 4 kB / 0.7709 GB, free: 14.85 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.296e-05/0.407, allocations: 75.28 kB / 0.7709 GB, free: 14.78 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.4e-07/0.407, allocations: 0 / 0.7709 GB, free: 14.78 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001833/0.4072, allocations: 4 kB / 0.7709 GB, free: 14.77 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001474/0.4073, allocations: 107.2 kB / 0.771 GB, free: 14.66 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 7.354e-05/0.4074, allocations: 8 kB / 0.7711 GB, free: 14.65 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4074, allocations: 4 kB / 0.7711 GB, free: 14.64 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.005e-06/0.4074, allocations: 3.938 kB / 0.7711 GB, free: 14.64 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.4076, allocations: 6.344 kB / 0.7711 GB, free: 14.64 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001809/0.4077, allocations: 73.08 kB / 0.7711 GB, free: 14.54 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.408, allocations: 0.6729 MB / 0.7718 GB, free: 13.84 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.107e-05/0.408, allocations: 8.125 kB / 0.7718 GB, free: 13.83 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.345e-05/0.408, allocations: 11.38 kB / 0.7718 GB, free: 13.82 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.408, allocations: 0 / 0.7718 GB, free: 13.82 MB / 0.545 GB Notification: Performance of Templates: time 0.002094/0.4101, allocations: 304.6 kB / 0.7721 GB, free: 13.52 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)