Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cubSpl.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline") translateModel(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cubSpl.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 108.9 kB / 16.37 MB, free: 6.465 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.001093/0.001093, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.406/2.406, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001277, allocations: 64.91 kB / 0.814 GB, free: 32.78 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3163, allocations: 140.4 MB / 0.9511 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002514/0.3189, allocations: 1.439 MB / 0.9525 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0012/0.3201, allocations: 0.7877 MB / 0.9533 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.777e-05/0.3201, allocations: 0 / 0.9533 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 6.214e-05/0.3202, allocations: 3.938 kB / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.936e-05/0.3203, allocations: 0 / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006184/0.3209, allocations: 179.6 kB / 0.9535 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.321, allocations: 39.92 kB / 0.9535 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.937e-05/0.3211, allocations: 15.97 kB / 0.9535 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.437e-05/0.3211, allocations: 15.94 kB / 0.9536 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.498e-05/0.3212, allocations: 15.97 kB / 0.9536 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.3212, allocations: 4 kB / 0.9536 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003176/0.3215, allocations: 203.7 kB / 0.9538 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.29e-05/0.3216, allocations: 19.97 kB / 0.9538 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.673e-05/0.3216, allocations: 15.88 kB / 0.9538 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.3219, allocations: 195.6 kB / 0.954 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3219, allocations: 0 / 0.954 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3219, allocations: 0 / 0.954 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.3219, allocations: 0 / 0.954 GB, free: 5.152 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004843/0.3224, allocations: 426.8 kB / 0.9544 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3224, allocations: 12.02 kB / 0.9544 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.3225, allocations: 8.844 kB / 0.9544 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.3226, allocations: 168.3 kB / 0.9546 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.3226, allocations: 4.375 kB / 0.9546 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.72e-05/0.3227, allocations: 8.125 kB / 0.9546 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.3228, allocations: 77.66 kB / 0.9547 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.3229, allocations: 0 / 0.9547 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.3229, allocations: 0 / 0.9547 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.3229, allocations: 3.984 kB / 0.9547 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.323, allocations: 47.91 kB / 0.9547 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00038/0.3234, allocations: 284.8 kB / 0.955 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.3235, allocations: 54.55 kB / 0.955 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.08e-05/0.3236, allocations: 44.92 kB / 0.9551 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 7.785e-06/0.3236, allocations: 0 / 0.9551 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.3237, allocations: 38.55 kB / 0.9551 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3237, allocations: 0 / 0.9551 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003815/0.324, allocations: 187.3 kB / 0.9553 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.3241, allocations: 77.11 kB / 0.9554 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.3242, allocations: 129.7 kB / 0.9555 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.3242, allocations: 29.64 kB / 0.9555 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.192e-05/0.3243, allocations: 84.14 kB / 0.9556 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.3243, allocations: 19.83 kB / 0.9556 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.3244, allocations: 17.72 kB / 0.9556 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3245, allocations: 322.8 kB / 0.9559 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3246, allocations: 59.95 kB / 0.956 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.08e-05/0.3247, allocations: 55.97 kB / 0.9561 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002292/0.3249, allocations: 193.8 kB / 0.9562 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3249, allocations: 0 / 0.9562 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002793/0.3252, allocations: 221.1 kB / 0.9564 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.65e-05/0.3253, allocations: 59.41 kB / 0.9565 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3253, allocations: 4 kB / 0.9565 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.3253, allocations: 4 kB / 0.9565 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.43e-05/0.3254, allocations: 3.984 kB / 0.9565 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.3254, allocations: 4 kB / 0.9565 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.724e-05/0.3254, allocations: 15.84 kB / 0.9565 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.3255, allocations: 3.984 kB / 0.9565 GB, free: 2.246 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cubSpl.i) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * 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.0001051/0.3256, allocations: 153.4 kB / 0.9567 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.095e-05/0.3256, allocations: 4 kB / 0.9567 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.243e-05/0.3256, allocations: 3.906 kB / 0.9567 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3256, allocations: 8 kB / 0.9567 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3256, allocations: 0 / 0.9567 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3257, allocations: 0 / 0.9567 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.3258, allocations: 173.6 kB / 0.9569 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3258, allocations: 0 / 0.9569 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.129e-05/0.3259, allocations: 7.984 kB / 0.9569 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3259, allocations: 3.938 kB / 0.9569 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.3259, allocations: 0 / 0.9569 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.3259, allocations: 4 kB / 0.9569 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.3259, allocations: 0 / 0.9569 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/0.3262, allocations: 253 kB / 0.9571 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.3262, allocations: 85.02 kB / 0.9572 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/0.3262, allocations: 0 / 0.9572 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.178e-05/0.3263, allocations: 7.984 kB / 0.9572 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.3264, allocations: 7.984 kB / 0.9572 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.3265, allocations: 0 / 0.9572 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.803e-05/0.3265, allocations: 99.7 kB / 0.9573 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3265, allocations: 4.031 kB / 0.9573 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000317/0.3268, allocations: 59.98 kB / 0.9574 GB, free: 1.277 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cubSpl.i) * Number of discrete states: 1 (cubSpl.i) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0002624/0.3271, allocations: 151.2 kB / 0.9575 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000334/0.3275, allocations: 242.7 kB / 0.9577 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3275, allocations: 0 / 0.9577 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.3276, allocations: 103.3 kB / 0.9578 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002184/0.3278, allocations: 17.78 kB / 0.9579 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000388/0.3282, allocations: 185.5 kB / 0.958 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.3285, allocations: 0.6844 MB / 0.9587 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 1.747e-05/0.3286, allocations: 4 kB / 0.9587 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.595e-05/0.3286, allocations: 7.438 kB / 0.9587 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.3286, allocations: 0 / 0.9587 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of Templates: time 0.004354/0.333, allocations: 1.753 MB / 0.9604 GB, free: 14.06 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches