Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.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.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_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.008551/0.008551, allocations: 98.52 kB / 15.73 MB, free: 5.602 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.002058/0.002058, allocations: 194.3 kB / 16.67 MB, free: 5.523 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.921/1.921, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 4.696/4.696, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.003344/0.003344, allocations: 67.91 kB / 1.018 GB, free: 9.82 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.221/1.225, allocations: 151.6 MB / 1.166 GB, free: 3.742 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.003744/1.228, allocations: 0.8955 MB / 1.167 GB, free: 2.848 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002877/1.231, allocations: 1.173 MB / 1.168 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.002e-05/1.231, allocations: 4 kB / 1.168 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 6.217e-05/1.232, allocations: 7.875 kB / 1.168 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.000121/1.232, allocations: 11.81 kB / 1.168 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009105/1.233, allocations: 170.5 kB / 1.168 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003863/1.233, allocations: 163.7 kB / 1.169 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/1.233, allocations: 37.08 kB / 1.169 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/1.233, allocations: 63.84 kB / 1.169 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/1.234, allocations: 75.72 kB / 1.169 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.77e-05/1.234, allocations: 16 kB / 1.169 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001359/1.234, allocations: 27.98 kB / 1.169 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.787e-05/1.234, allocations: 19.92 kB / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001605/1.234, allocations: 75.69 kB / 1.169 GB, free: 1 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004005/1.235, allocations: 167 kB / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/1.235, allocations: 3.984 kB / 1.169 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.643e-06/1.235, allocations: 0 / 1.169 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.18e-05/1.235, allocations: 0 / 1.169 GB, free: 0.8359 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001144/1.236, allocations: 464.6 kB / 1.169 GB, free: 332 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/1.236, allocations: 12.92 kB / 1.169 GB, free: 320 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.473e-05/1.236, allocations: 38.73 kB / 1.17 GB, free: 272 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.495e-05/1.236, allocations: 16.84 kB / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/1.237, allocations: 246 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/1.237, allocations: 8.375 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.335e-05/1.237, allocations: 24.36 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004219/1.238, allocations: 88.08 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/1.238, allocations: 0 / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.916e-05/1.238, allocations: 11.92 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/1.238, allocations: 0 / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/1.238, allocations: 51.89 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/1.239, allocations: 384.5 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/1.24, allocations: 38.55 kB / 1.17 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/1.24, allocations: 24.78 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/1.24, allocations: 3.984 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004402/1.24, allocations: 99.47 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 2.535e-06/1.24, allocations: 0 / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0007751/1.241, allocations: 137.5 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.342e-05/1.241, allocations: 59.34 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/1.241, allocations: 140.2 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.894e-05/1.242, allocations: 37.7 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/1.242, allocations: 108 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.115e-05/1.242, allocations: 31.75 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/1.242, allocations: 45.69 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002528/1.242, allocations: 326.8 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002978/1.243, allocations: 39.97 kB / 1.171 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004259/1.243, allocations: 141.4 kB / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006625/1.244, allocations: 200.6 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.546e-05/1.244, allocations: 11.94 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0009974/1.245, allocations: 243.2 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.542e-05/1.245, allocations: 33.7 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/1.245, allocations: 7.984 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/1.245, allocations: 4 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/1.245, allocations: 27.86 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/1.245, allocations: 4 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004394/1.246, allocations: 35.97 kB / 1.172 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.576e-05/1.246, allocations: 16.45 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 prepare postOptimizeDAE: time 0.000208/1.246, allocations: 129.7 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.739e-05/1.246, allocations: 15.91 kB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.79e-05/1.246, allocations: 12.7 kB / 1.172 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/1.246, allocations: 11.88 kB / 1.172 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/1.246, allocations: 0 / 1.172 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/1.246, allocations: 0 / 1.172 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/1.247, allocations: 398.5 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/1.247, allocations: 3.984 kB / 1.173 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/1.247, allocations: 19.88 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.238e-05/1.247, allocations: 7.984 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/1.247, allocations: 0 / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/1.247, allocations: 0 / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.247, allocations: 0 / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000805/1.248, allocations: 244.7 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/1.248, allocations: 89 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.531e-05/1.248, allocations: 4 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/1.249, allocations: 7.984 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.961e-05/1.249, allocations: 8 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/1.249, allocations: 7.984 kB / 1.173 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001486/1.249, allocations: 107.3 kB / 1.173 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.81e-07/1.249, allocations: 0 / 1.173 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0006153/1.25, allocations: 35.89 kB / 1.173 GB, free: 12.23 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.001464/1.251, allocations: 0.7868 MB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007863/1.252, allocations: 183.1 kB / 1.174 GB, free: 11.22 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/1.252, allocations: 0 / 1.174 GB, free: 11.22 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002369/1.252, allocations: 39.97 kB / 1.174 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/1.253, allocations: 35.08 kB / 1.174 GB, free: 11.15 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00477/1.258, allocations: 1.967 MB / 1.176 GB, free: 9.027 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005964/1.258, allocations: 0.7045 MB / 1.177 GB, free: 8.297 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001343/1.258, allocations: 16.64 kB / 1.177 GB, free: 8.281 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/1.258, allocations: 35.42 kB / 1.177 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of SimCode: time 6.61e-07/1.258, allocations: 0 / 1.177 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04327/1.302, allocations: 3.172 MB / 1.18 GB, free: 5.207 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/13.51, allocations: 11.34 kB / 1.18 GB, free: 5.203 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches