Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 107.5 kB / 16.41 MB, free: 6.02 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.0012/0.0012, allocations: 191.4 kB / 17.34 MB, free: 5.605 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.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002455/0.002455, allocations: 286.3 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.01/1.01, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00275/0.00275, allocations: 100.1 kB / 0.6822 GB, free: 6.914 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4259/0.4287, allocations: 86.99 MB / 0.7671 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001652/0.4303, allocations: 0.6058 MB / 0.7677 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001704/0.432, allocations: 1.287 MB / 0.769 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.045e-05/0.432, allocations: 0 / 0.769 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.287e-05/0.4321, allocations: 0 / 0.769 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.272e-05/0.4321, allocations: 4 kB / 0.769 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.4325, allocations: 75.67 kB / 0.769 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.913e-05/0.4325, allocations: 23.97 kB / 0.7691 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.041e-05/0.4326, allocations: 4 kB / 0.7691 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.387e-05/0.4326, allocations: 11.92 kB / 0.7691 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.574e-05/0.4327, allocations: 15.92 kB / 0.7691 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.4327, allocations: 0 / 0.7691 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002267/0.4329, allocations: 103.9 kB / 0.7692 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.544e-05/0.4329, allocations: 7.984 kB / 0.7692 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.922e-05/0.433, allocations: 23.86 kB / 0.7692 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.4331, allocations: 65.91 kB / 0.7693 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4331, allocations: 0 / 0.7693 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4331, allocations: 0 / 0.7693 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.4331, allocations: 0 / 0.7693 GB, free: 1.84 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000514/0.4336, allocations: 355.3 kB / 0.7696 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.4337, allocations: 8.031 kB / 0.7696 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.678e-05/0.4337, allocations: 4.938 kB / 0.7696 GB, free: 1.434 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.4338, allocations: 172.3 kB / 0.7698 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.4339, allocations: 4.375 kB / 0.7698 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.8e-05/0.4339, allocations: 384 / 0.7698 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.434, allocations: 54 kB / 0.7699 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.434, allocations: 0 / 0.7699 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.434, allocations: 4 kB / 0.7699 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.434, allocations: 0 / 0.7699 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.542e-05/0.4341, allocations: 23.97 kB / 0.7699 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002114/0.4343, allocations: 173.6 kB / 0.77 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.4345, allocations: 62.5 kB / 0.7701 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.908e-05/0.4345, allocations: 28.84 kB / 0.7701 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005593/0.4351, allocations: 0.5544 MB / 0.7707 GB, free: 136 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.4351, allocations: 34.5 kB / 0.7707 GB, free: 92 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.4351, allocations: 4 kB / 0.7707 GB, free: 88 kB / 0.5294 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.02083/0.4559, allocations: 4.381 MB / 0.775 GB, free: 11.55 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.456, allocations: 51.41 kB / 0.775 GB, free: 11.49 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.961e-05/0.4561, allocations: 101.8 kB / 0.7751 GB, free: 11.38 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.619e-05/0.4561, allocations: 29.7 kB / 0.7752 GB, free: 11.34 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.408e-05/0.4562, allocations: 81.94 kB / 0.7752 GB, free: 11.26 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.4563, allocations: 59.48 kB / 0.7753 GB, free: 11.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002502/0.4566, allocations: 89.67 kB / 0.7754 GB, free: 11.11 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4567, allocations: 322.8 kB / 0.7757 GB, free: 10.79 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005648/0.4573, allocations: 307.9 kB / 0.776 GB, free: 10.48 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.4578, allocations: 311.1 kB / 0.7763 GB, free: 10.18 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001638/0.4595, allocations: 0.7781 MB / 0.777 GB, free: 9.402 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.4595, allocations: 3.938 kB / 0.777 GB, free: 9.398 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001653/0.4611, allocations: 0.7981 MB / 0.7778 GB, free: 8.594 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.4611, allocations: 4 kB / 0.7778 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.4612, allocations: 0 / 0.7778 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.4612, allocations: 0 / 0.7778 GB, free: 8.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009115/0.4621, allocations: 95.88 kB / 0.7779 GB, free: 8.496 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.4621, allocations: 4 kB / 0.7779 GB, free: 8.492 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005711/0.4627, allocations: 8 kB / 0.7779 GB, free: 8.484 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.488e-05/0.4627, allocations: 39.91 kB / 0.778 GB, free: 8.445 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 (18): * Single equations (assignments): 18 * 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 0.0002203/0.463, allocations: 121.8 kB / 0.7781 GB, free: 8.316 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.43e-05/0.4631, allocations: 11.95 kB / 0.7781 GB, free: 8.305 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003366/0.4664, allocations: 1.396 MB / 0.7795 GB, free: 6.902 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.4664, allocations: 4 kB / 0.7795 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4664, allocations: 0 / 0.7795 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.4664, allocations: 3.984 kB / 0.7795 GB, free: 6.895 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.4696, allocations: 1.804 MB / 0.7812 GB, free: 5.027 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.4696, allocations: 3.938 kB / 0.7812 GB, free: 5.023 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008796/0.4705, allocations: 103.9 kB / 0.7813 GB, free: 4.922 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.929e-06/0.4705, allocations: 4 kB / 0.7813 GB, free: 4.918 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.653e-05/0.4706, allocations: 31.94 kB / 0.7814 GB, free: 4.887 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.647e-06/0.4706, allocations: 7.984 kB / 0.7814 GB, free: 4.879 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4706, allocations: 4.344 kB / 0.7814 GB, free: 4.875 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00258/0.4732, allocations: 1.466 MB / 0.7828 GB, free: 3.387 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.254e-05/0.4732, allocations: 92.98 kB / 0.7829 GB, free: 3.277 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.757e-05/0.4733, allocations: 19.92 kB / 0.7829 GB, free: 3.258 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005827/0.4739, allocations: 8 kB / 0.7829 GB, free: 3.25 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.4741, allocations: 47.97 kB / 0.783 GB, free: 3.203 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.262e-05/0.4741, allocations: 32.06 kB / 0.783 GB, free: 3.172 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.097e-05/0.4742, allocations: 75.28 kB / 0.7831 GB, free: 3.098 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.4742, allocations: 0 / 0.7831 GB, free: 3.098 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0006197/0.4748, allocations: 183.7 kB / 0.7832 GB, free: 2.918 MB / 0.545 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 (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.0005816/0.4754, allocations: 229.8 kB / 0.7835 GB, free: 2.688 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001344/0.4767, allocations: 0.7175 MB / 0.7842 GB, free: 1.973 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4767, allocations: 0 / 0.7842 GB, free: 1.973 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006793/0.4774, allocations: 403.8 kB / 0.7846 GB, free: 1.578 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.4777, allocations: 18.06 kB / 0.7846 GB, free: 1.562 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/0.4814, allocations: 0.8088 MB / 0.7854 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.4818, allocations: 0.7142 MB / 0.7861 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001057/0.4829, allocations: 297.6 kB / 0.7863 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005696/0.4834, allocations: 99.34 kB / 0.7864 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.062e-06/0.4834, allocations: 0 / 0.7864 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of Templates: time 0.01748/0.5009, allocations: 11.27 MB / 0.7974 GB, free: 4.422 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)