Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.0008746/0.0008746, allocations: 97.64 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.005211/0.005211, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.207/1.207, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.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.103/2.103, allocations: 390.9 MB / 0.6664 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002779/0.0002779, allocations: 12 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.518/0.5183, allocations: 142.4 MB / 0.9552 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.0008223/0.5192, allocations: 0.5952 MB / 0.9558 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.5202, allocations: 1.184 MB / 0.9569 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.823e-05/0.5203, allocations: 1.125 kB / 0.9569 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.5203, allocations: 3.938 kB / 0.9569 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.931e-05/0.5204, allocations: 10.17 kB / 0.9569 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003959/0.5208, allocations: 137.4 kB / 0.9571 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.5209, allocations: 150.3 kB / 0.9572 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.521, allocations: 37.5 kB / 0.9573 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.8e-05/0.5211, allocations: 52.72 kB / 0.9573 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.414e-05/0.5212, allocations: 54.41 kB / 0.9574 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.5212, allocations: 6.438 kB / 0.9574 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.808e-05/0.5213, allocations: 24.94 kB / 0.9574 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.171e-05/0.5213, allocations: 17.61 kB / 0.9574 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.289e-05/0.5214, allocations: 78.73 kB / 0.9575 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.5215, allocations: 159.7 kB / 0.9576 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.5215, allocations: 0 / 0.9576 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5215, allocations: 1.219 kB / 0.9576 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.527e-06/0.5215, allocations: 0 / 0.9576 GB, free: 5.848 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004481/0.522, allocations: 432.2 kB / 0.958 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.522, allocations: 9.062 kB / 0.9581 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.24e-05/0.5221, allocations: 46.42 kB / 0.9581 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.878e-05/0.5221, allocations: 19.66 kB / 0.9581 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.5226, allocations: 258 kB / 0.9584 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.5226, allocations: 9.812 kB / 0.9584 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.5226, allocations: 13.62 kB / 0.9584 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.5228, allocations: 95.95 kB / 0.9585 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.5228, allocations: 5.406 kB / 0.9585 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.5228, allocations: 4 kB / 0.9585 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.5228, allocations: 2 kB / 0.9585 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.523, allocations: 58.89 kB / 0.9585 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005386/0.5236, allocations: 394.8 kB / 0.9589 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.5237, allocations: 46.67 kB / 0.959 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.229e-05/0.5238, allocations: 33.38 kB / 0.959 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.5238, allocations: 0 / 0.959 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000176/0.524, allocations: 100.3 kB / 0.9591 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.524, allocations: 0 / 0.9591 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003616/0.5244, allocations: 143.7 kB / 0.9592 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.214e-05/0.5244, allocations: 60.72 kB / 0.9593 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.855e-05/0.5245, allocations: 156.1 kB / 0.9594 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.5245, allocations: 32.39 kB / 0.9595 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.208e-05/0.5245, allocations: 110.8 kB / 0.9596 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.5246, allocations: 31.67 kB / 0.9596 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.5246, allocations: 25.95 kB / 0.9596 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.91e-05/0.5246, allocations: 325.6 kB / 0.9599 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.5248, allocations: 50.22 kB / 0.96 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.5249, allocations: 141.9 kB / 0.9601 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.5252, allocations: 210.5 kB / 0.9603 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.5252, allocations: 1.375 kB / 0.9603 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004002/0.5256, allocations: 248.6 kB / 0.9606 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.5257, allocations: 33.73 kB / 0.9606 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.5257, allocations: 2.875 kB / 0.9606 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.5257, allocations: 7.984 kB / 0.9606 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.5258, allocations: 36.2 kB / 0.9606 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.5258, allocations: 4.188 kB / 0.9606 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002214/0.526, allocations: 48.22 kB / 0.9607 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.5261, allocations: 18.52 kB / 0.9607 GB, free: 3.105 MB / 0.7169 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 6.915e-05/0.5261, allocations: 129.7 kB / 0.9608 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.594e-05/0.5262, allocations: 13.5 kB / 0.9608 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.869e-05/0.5262, allocations: 22.61 kB / 0.9609 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.5262, allocations: 5.5 kB / 0.9609 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.5262, allocations: 0 / 0.9609 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.5262, allocations: 0.8125 kB / 0.9609 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004285/0.5267, allocations: 406.2 kB / 0.9613 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.5267, allocations: 4 kB / 0.9613 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.581e-05/0.5268, allocations: 20.03 kB / 0.9613 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.5268, allocations: 3.984 kB / 0.9613 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.5268, allocations: 5.656 kB / 0.9613 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.5268, allocations: 1.031 kB / 0.9613 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.5268, allocations: 0 / 0.9613 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003588/0.5272, allocations: 250.6 kB / 0.9615 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.073e-05/0.5272, allocations: 91.91 kB / 0.9616 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.5272, allocations: 1.125 kB / 0.9616 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.715e-05/0.5273, allocations: 13.27 kB / 0.9616 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.5273, allocations: 8 kB / 0.9616 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.5273, allocations: 8.141 kB / 0.9616 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.547e-05/0.5274, allocations: 107.9 kB / 0.9617 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5274, allocations: 0 / 0.9617 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002649/0.5277, allocations: 36.16 kB / 0.9618 GB, free: 2.145 MB / 0.7169 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.0005138/0.5282, allocations: 0.7942 MB / 0.9626 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003285/0.5285, allocations: 199.6 kB / 0.9627 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5285, allocations: 0 / 0.9627 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.5287, allocations: 40.41 kB / 0.9628 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.5289, allocations: 22.98 kB / 0.9628 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.5307, allocations: 2.011 MB / 0.9648 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.5309, allocations: 0.7037 MB / 0.9655 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.174e-05/0.531, allocations: 16.38 kB / 0.9655 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.894e-05/0.5311, allocations: 34.95 kB / 0.9655 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.5311, allocations: 0 / 0.9655 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2618/0.7928, allocations: 2.858 MB / 0.9683 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.793, allocations: 218.9 kB / 0.9685 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.542/2.335, allocations: 4.453 kB / 0.9685 GB, free: 13.18 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches