Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009403/0.0009404, allocations: 96.62 kB / 15.36 MB, free: 0.7344 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.01048/0.01048, allocations: 169.8 kB / 16.27 MB, free: 6.648 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.554/1.554, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.61/2.61, allocations: 390.9 MB / 0.6663 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003617, allocations: 8 kB / 0.816 GB, free: 13.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9143/0.9147, allocations: 142.4 MB / 0.955 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.000798/0.9156, allocations: 324.1 kB / 0.9554 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002738/0.9159, allocations: 49.08 kB / 0.9554 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.087e-06/0.9159, allocations: 0 / 0.9554 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.353e-05/0.9159, allocations: 0 / 0.9554 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.819e-06/0.9159, allocations: 0 / 0.9554 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002002/0.9161, allocations: 15.52 kB / 0.9554 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.879e-05/0.9162, allocations: 2.438 kB / 0.9554 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.923e-05/0.9162, allocations: 0 / 0.9554 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.376e-05/0.9162, allocations: 1.156 kB / 0.9554 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.778e-05/0.9163, allocations: 17.09 kB / 0.9554 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.766e-06/0.9163, allocations: 0 / 0.9554 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.492e-05/0.9164, allocations: 18.36 kB / 0.9555 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.747e-06/0.9164, allocations: 0 / 0.9555 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.139e-05/0.9164, allocations: 30.77 kB / 0.9555 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.324e-05/0.9165, allocations: 13.64 kB / 0.9555 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.9165, allocations: 1.438 kB / 0.9555 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.693e-06/0.9165, allocations: 0 / 0.9555 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.9166, allocations: 0 / 0.9555 GB, free: 7.43 MB / 0.7169 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.0002243/0.9168, allocations: 314.4 kB / 0.9558 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.9168, allocations: 13.03 kB / 0.9558 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002562/0.9171, allocations: 17.94 kB / 0.9558 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.714e-05/0.9172, allocations: 160.4 kB / 0.956 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-06/0.9172, allocations: 384 / 0.956 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.9172, allocations: 5.281 kB / 0.956 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001304/0.9173, allocations: 38.16 kB / 0.956 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.9174, allocations: 1.312 kB / 0.956 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.9174, allocations: 11.92 kB / 0.956 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.9174, allocations: 0 / 0.956 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.514e-05/0.9175, allocations: 6.375 kB / 0.956 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.9176, allocations: 146.8 kB / 0.9562 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.547e-05/0.9177, allocations: 18.3 kB / 0.9562 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.608e-05/0.9177, allocations: 16.56 kB / 0.9562 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.9178, allocations: 4 kB / 0.9562 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.787e-05/0.9178, allocations: 31.47 kB / 0.9563 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.9178, allocations: 7.875 kB / 0.9563 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002272/0.918, allocations: 49.42 kB / 0.9563 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.65e-05/0.9181, allocations: 51.41 kB / 0.9564 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.156e-05/0.9181, allocations: 89.86 kB / 0.9564 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.786e-06/0.9181, allocations: 31.36 kB / 0.9565 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.23e-05/0.9181, allocations: 80.14 kB / 0.9565 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.321e-05/0.9182, allocations: 7.906 kB / 0.9566 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/0.9182, allocations: 10.88 kB / 0.9566 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.906e-05/0.9182, allocations: 310.8 kB / 0.9569 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.403e-05/0.9183, allocations: 6.953 kB / 0.9569 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.602e-05/0.9183, allocations: 3.969 kB / 0.9569 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.006e-05/0.9184, allocations: 23 kB / 0.9569 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.9184, allocations: 0 / 0.9569 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001111/0.9185, allocations: 42.95 kB / 0.9569 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.9186, allocations: 5.281 kB / 0.9569 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.9186, allocations: 1 kB / 0.9569 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.9186, allocations: 3.938 kB / 0.9569 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.098e-05/0.9187, allocations: 3.406 kB / 0.9569 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.9187, allocations: 0 / 0.9569 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.248e-05/0.9187, allocations: 5.25 kB / 0.957 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.9187, allocations: 9.141 kB / 0.957 GB, free: 5.797 MB / 0.7169 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 4.534e-05/0.9188, allocations: 110.9 kB / 0.9571 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.105e-06/0.9188, allocations: 5.328 kB / 0.9571 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.841e-05/0.9188, allocations: 7.062 kB / 0.9571 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.9188, allocations: 0 / 0.9571 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.9188, allocations: 0.9062 kB / 0.9571 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.9188, allocations: 0 / 0.9571 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.069e-05/0.9189, allocations: 150.9 kB / 0.9572 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.9189, allocations: 0 / 0.9572 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.849e-05/0.919, allocations: 7.562 kB / 0.9572 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.919, allocations: 0 / 0.9572 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.919, allocations: 5.125 kB / 0.9572 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.919, allocations: 3.984 kB / 0.9572 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.919, allocations: 4 kB / 0.9572 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001241/0.9191, allocations: 71.89 kB / 0.9573 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.332e-05/0.9191, allocations: 77.11 kB / 0.9574 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.9192, allocations: 9.094 kB / 0.9574 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.931e-05/0.9192, allocations: 1.406 kB / 0.9574 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.531e-05/0.9192, allocations: 1.219 kB / 0.9574 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-06/0.9192, allocations: 0 / 0.9574 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.537e-05/0.9192, allocations: 79.27 kB / 0.9575 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9192, allocations: 1.438 kB / 0.9575 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001719/0.9194, allocations: 1.312 kB / 0.9575 GB, free: 5.199 MB / 0.7169 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.00011/0.9195, allocations: 100.4 kB / 0.9576 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001299/0.9197, allocations: 19.67 kB / 0.9576 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.9197, allocations: 0 / 0.9576 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.088e-05/0.9197, allocations: 3.906 kB / 0.9576 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.9199, allocations: 6.562 kB / 0.9576 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002108/0.9201, allocations: 78.72 kB / 0.9577 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.975e-05/0.9202, allocations: 0.6746 MB / 0.9583 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.488e-05/0.9202, allocations: 5.422 kB / 0.9583 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.91e-05/0.9202, allocations: 7.438 kB / 0.9583 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.9202, allocations: 0 / 0.9583 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of Templates: time 0.002037/0.9223, allocations: 211.5 kB / 0.9585 GB, free: 4.18 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches