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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0006298/0.0006298, allocations: 76.5 kB / 19.93 MB, free: 4.629 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007181/0.0007181, allocations: 178.2 kB / 23.22 MB, free: 1.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8418/0.8418, allocations: 177.1 MB / 203.5 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001277/0.001277, allocations: 226.4 kB / 260.2 MB, free: 13.04 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.642/0.642, allocations: 138.4 MB / 455.1 MB, free: 29.96 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 0.6476 GB, free: 1.262 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.797e-05/1.938e-05, allocations: 6.281 kB / 0.6476 GB, free: 1.254 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0009649/0.0009842, allocations: 0.6186 MB / 0.6482 GB, free: 0.6367 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2524/0.2534, allocations: 1.302 MB / 0.6495 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.917e-05/0.2534, allocations: 0.5938 kB / 0.6495 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 1.812e-05/0.2534, allocations: 6.672 kB / 0.6495 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 2.44e-05/0.2535, allocations: 1.812 kB / 0.6495 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004864/0.2539, allocations: 76.8 kB / 0.6496 GB, free: 56.22 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 7.31e-05/0.254, allocations: 24.7 kB / 0.6496 GB, free: 56.21 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 5.077e-05/0.2541, allocations: 6.906 kB / 0.6496 GB, free: 56.21 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 4.473e-05/0.2541, allocations: 13.23 kB / 0.6496 GB, free: 56.21 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 8.145e-05/0.2542, allocations: 14 kB / 0.6496 GB, free: 56.21 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.2542, allocations: 1.562 kB / 0.6496 GB, free: 56.21 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002932/0.2545, allocations: 111.4 kB / 0.6497 GB, free: 56.2 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 1.39e-05/0.2545, allocations: 7.688 kB / 0.6497 GB, free: 56.2 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 2.49e-05/0.2545, allocations: 11.98 kB / 0.6497 GB, free: 56.2 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.2547, allocations: 85.38 kB / 0.6498 GB, free: 56.19 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2547, allocations: 1.75 kB / 0.6498 GB, free: 56.19 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2547, allocations: 0.7188 kB / 0.6498 GB, free: 56.19 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.2547, allocations: 0 / 0.6498 GB, free: 56.19 MB / 0.5573 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.0003758/0.2551, allocations: 282.1 kB / 0.6501 GB, free: 55.91 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.2552, allocations: 9.969 kB / 0.6501 GB, free: 55.91 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.916e-05/0.2552, allocations: 8.188 kB / 0.6501 GB, free: 55.91 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.402e-05/0.2553, allocations: 109 kB / 0.6502 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.2553, allocations: 3.969 kB / 0.6502 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.2553, allocations: 5.75 kB / 0.6502 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.2554, allocations: 78.22 kB / 0.6503 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.2554, allocations: 192 / 0.6503 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.2554, allocations: 3.25 kB / 0.6503 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.2555, allocations: 5.062 kB / 0.6503 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.686e-05/0.2555, allocations: 23.94 kB / 0.6503 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001143/0.2556, allocations: 109.1 kB / 0.6504 GB, free: 55.6 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000115/0.2557, allocations: 59.88 kB / 0.6505 GB, free: 55.57 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.741e-05/0.2558, allocations: 23.75 kB / 0.6505 GB, free: 55.56 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002111/0.256, allocations: 38.45 kB / 0.6505 GB, free: 55.56 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.256, allocations: 33.19 kB / 0.6506 GB, free: 55.52 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.256, allocations: 2.156 kB / 0.6506 GB, free: 55.52 MB / 0.5573 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.01115/0.2672, allocations: 4.178 MB / 0.6547 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.2672, allocations: 58.56 kB / 0.6547 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.863e-05/0.2673, allocations: 92.91 kB / 0.6548 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/0.2673, allocations: 27.39 kB / 0.6548 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 1.778e-05/0.2673, allocations: 86.58 kB / 0.6549 GB, free: 54.21 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 9.133e-05/0.2674, allocations: 54.81 kB / 0.655 GB, free: 54.17 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.2676, allocations: 93.14 kB / 0.6551 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.767e-05/0.2676, allocations: 320.5 kB / 0.6554 GB, free: 53.83 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003658/0.268, allocations: 310.5 kB / 0.6557 GB, free: 53.7 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000367/0.2684, allocations: 315.8 kB / 0.656 GB, free: 53.57 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.2695, allocations: 0.773 MB / 0.6567 GB, free: 53.23 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2695, allocations: 0 / 0.6567 GB, free: 53.23 MB / 0.5573 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00115/0.2706, allocations: 0.8024 MB / 0.6575 GB, free: 52.9 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.2706, allocations: 6.047 kB / 0.6575 GB, free: 52.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.2706, allocations: 0 / 0.6575 GB, free: 52.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.2707, allocations: 1.688 kB / 0.6575 GB, free: 52.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000458/0.2711, allocations: 93.5 kB / 0.6576 GB, free: 52.89 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.2711, allocations: 2.625 kB / 0.6576 GB, free: 52.89 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.2713, allocations: 10.2 kB / 0.6576 GB, free: 52.89 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.154e-05/0.2714, allocations: 37.2 kB / 0.6576 GB, free: 52.89 MB / 0.5573 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.0001552/0.2715, allocations: 115.2 kB / 0.6577 GB, free: 52.77 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.568e-05/0.2716, allocations: 12.02 kB / 0.6578 GB, free: 52.76 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/0.2739, allocations: 1.405 MB / 0.6591 GB, free: 52.11 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.2739, allocations: 3.625 kB / 0.6591 GB, free: 52.11 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.2739, allocations: 1.219 kB / 0.6591 GB, free: 52.11 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.2739, allocations: 6.422 kB / 0.6591 GB, free: 52.1 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.2762, allocations: 1.67 MB / 0.6608 GB, free: 51.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.2762, allocations: 0 / 0.6608 GB, free: 51.17 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004373/0.2766, allocations: 111.1 kB / 0.6609 GB, free: 51.16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.157e-06/0.2766, allocations: 0 / 0.6609 GB, free: 51.16 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.664e-05/0.2767, allocations: 29.03 kB / 0.6609 GB, free: 51.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.084e-06/0.2767, allocations: 1.719 kB / 0.6609 GB, free: 51.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.2767, allocations: 32 / 0.6609 GB, free: 51.16 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001901/0.2786, allocations: 1.479 MB / 0.6624 GB, free: 50.39 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 2.717e-05/0.2786, allocations: 15 kB / 0.6624 GB, free: 50.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.2787, allocations: 6.031 kB / 0.6624 GB, free: 50.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.2789, allocations: 15.03 kB / 0.6624 GB, free: 50.37 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.279, allocations: 39.06 kB / 0.6624 GB, free: 50.37 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.028e-05/0.2791, allocations: 33.89 kB / 0.6625 GB, free: 50.36 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 3.358e-05/0.2791, allocations: 76.31 kB / 0.6625 GB, free: 50.29 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2791, allocations: 0 / 0.6625 GB, free: 50.29 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0007028/0.2798, allocations: 186.4 kB / 0.6627 GB, free: 50.26 MB / 0.5573 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.0006121/0.2805, allocations: 259.9 kB / 0.663 GB, free: 50.11 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001059/0.2815, allocations: 0.7108 MB / 0.6636 GB, free: 49.83 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.2815, allocations: 0 / 0.6636 GB, free: 49.83 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.000467/0.282, allocations: 402.6 kB / 0.664 GB, free: 49.67 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.2823, allocations: 19.86 kB / 0.6641 GB, free: 49.66 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.2843, allocations: 0.8154 MB / 0.6648 GB, free: 49.27 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001005/0.2844, allocations: 106.9 kB / 0.6649 GB, free: 49.19 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004097/0.2849, allocations: 91.72 kB / 0.665 GB, free: 49.18 MB / 0.5573 GB Notification: Performance of SimCode: time 1.984e-06/0.2849, allocations: 0 / 0.665 GB, free: 49.18 MB / 0.5573 GB Notification: Performance of Templates: time 0.01122/0.2961, allocations: 7.146 MB / 0.672 GB, free: 48.69 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 660] (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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.379553433507681] Failed to read output from testmodel.py, exit status != 0: 0.3017830951139331 0.310708293 0.054282079000000004 Calling exit ...