Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001567, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001921/0.001921, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.304/1.304, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.357/2.357, allocations: 437 MB / 0.7101 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 63.91 kB / 0.8689 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6126/0.6138, allocations: 151.6 MB / 1.017 GB, free: 2.695 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003692/0.6176, allocations: 1.877 MB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.6186, allocations: 0.5455 MB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.6188, allocations: 3.938 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.619, allocations: 15.86 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001/0.6191, allocations: 15.8 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.6194, allocations: 63.92 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002531/0.6197, allocations: 171.6 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.6199, allocations: 45.56 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.62, allocations: 59.72 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.576e-05/0.6201, allocations: 59.55 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.6201, allocations: 12 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.6201, allocations: 12 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.586e-05/0.6202, allocations: 31.86 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.222e-05/0.6202, allocations: 63.61 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.6204, allocations: 129.8 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.6204, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6204, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.378e-05/0.6205, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007527/0.6212, allocations: 474.7 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.6213, allocations: 12.03 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.229e-05/0.6213, allocations: 42.75 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.128e-05/0.6214, allocations: 20.66 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.6217, allocations: 232.5 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.6217, allocations: 12.23 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.6217, allocations: 16.28 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.622, allocations: 152 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.6221, allocations: 0 / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.6221, allocations: 7.984 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.6221, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.6223, allocations: 67.89 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008748/0.6232, allocations: 0.7315 MB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001398/0.6233, allocations: 62.47 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.785e-05/0.6235, allocations: 28.84 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.6235, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.6238, allocations: 134.6 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.6238, allocations: 4 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004393/0.6242, allocations: 165.5 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.6243, allocations: 128.5 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.6245, allocations: 199 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.6245, allocations: 33.64 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.525e-05/0.6246, allocations: 136.2 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.6246, allocations: 31.61 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.724e-05/0.6247, allocations: 41.7 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.6248, allocations: 330.8 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.6249, allocations: 43.91 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.6251, allocations: 146.6 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.6254, allocations: 210.3 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.6254, allocations: 8 kB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003687/0.6258, allocations: 205.5 kB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.6258, allocations: 12.03 kB / 1.023 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.6258, allocations: 4 kB / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.6258, allocations: 7.938 kB / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.6259, allocations: 27.98 kB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.626, allocations: 15.92 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.6261, allocations: 27.83 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.6261, allocations: 8 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001013/0.6262, allocations: 137.7 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.889e-05/0.6263, allocations: 19.81 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.251e-05/0.6263, allocations: 25.39 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.6263, allocations: 0 / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.6263, allocations: 4 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.6263, allocations: 0 / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007271/0.6271, allocations: 0.5132 MB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.6271, allocations: 4 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.6272, allocations: 15.92 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.6272, allocations: 4 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.6272, allocations: 0 / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.6273, allocations: 7.938 kB / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.6273, allocations: 3.984 kB / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004627/0.6277, allocations: 356.2 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.45e-05/0.6278, allocations: 100.8 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.6278, allocations: 0 / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.628, allocations: 19.92 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.831e-05/0.6281, allocations: 11.98 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.6281, allocations: 12 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001009/0.6282, allocations: 136.6 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6282, allocations: 0 / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003278/0.6285, allocations: 31.98 kB / 1.025 GB, free: 9.98 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007096/0.6292, allocations: 0.8946 MB / 1.026 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003075/0.6296, allocations: 128.1 kB / 1.026 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6296, allocations: 0 / 1.026 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.6297, allocations: 51.91 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005566/0.6303, allocations: 72.45 kB / 1.026 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002399/0.6327, allocations: 2.283 MB / 1.028 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.633, allocations: 0.7203 MB / 1.029 GB, free: 5.582 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.182e-05/0.6331, allocations: 21.55 kB / 1.029 GB, free: 5.559 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.347e-05/0.6332, allocations: 47.64 kB / 1.029 GB, free: 5.512 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.6332, allocations: 0 / 1.029 GB, free: 5.512 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4823/1.115, allocations: 3.783 MB / 1.033 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002453/1.116, allocations: 209.8 kB / 1.033 GB, free: 1.605 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2/3.115, allocations: 0 / 1.033 GB, free: 1.605 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches