Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.0008922/0.0008963, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.007397/0.007397, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.336/1.336, allocations: 223.3 MB / 240.3 MB, free: 5.367 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.328/2.328, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003243, allocations: 8 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7388/0.7391, allocations: 142.4 MB / 0.9552 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0007443/0.7399, allocations: 415.6 kB / 0.9556 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001035/0.741, allocations: 1.054 MB / 0.9566 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.153e-05/0.741, allocations: 0.9062 kB / 0.9566 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.389e-05/0.741, allocations: 0 / 0.9566 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.634e-05/0.7411, allocations: 5.188 kB / 0.9566 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/0.7413, allocations: 45.73 kB / 0.9567 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.798e-05/0.7414, allocations: 62.19 kB / 0.9567 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.845e-05/0.7415, allocations: 13.23 kB / 0.9567 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.143e-05/0.7416, allocations: 21.86 kB / 0.9568 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.48e-05/0.7416, allocations: 28.78 kB / 0.9568 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.7416, allocations: 2.719 kB / 0.9568 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.93e-05/0.7417, allocations: 17.27 kB / 0.9568 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.702e-05/0.7417, allocations: 22.28 kB / 0.9568 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.7418, allocations: 53.38 kB / 0.9569 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.7419, allocations: 67.64 kB / 0.9569 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.7419, allocations: 0 / 0.9569 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7419, allocations: 5.125 kB / 0.9569 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.7419, allocations: 0 / 0.9569 GB, free: 6.328 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000473/0.7424, allocations: 374.6 kB / 0.9573 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.7424, allocations: 9.625 kB / 0.9573 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.366e-05/0.7425, allocations: 37.03 kB / 0.9573 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.7425, allocations: 8.062 kB / 0.9574 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.443e-05/0.7426, allocations: 170.5 kB / 0.9575 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.7426, allocations: 4.062 kB / 0.9575 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.7426, allocations: 12.59 kB / 0.9575 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.7428, allocations: 83.91 kB / 0.9576 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.7429, allocations: 12.97 kB / 0.9576 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.7429, allocations: 0 / 0.9576 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.7429, allocations: 7.969 kB / 0.9576 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.7431, allocations: 61.39 kB / 0.9577 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/0.7435, allocations: 315.2 kB / 0.958 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001782/0.7437, allocations: 89.69 kB / 0.9581 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.7438, allocations: 48.83 kB / 0.9581 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.7438, allocations: 7.938 kB / 0.9581 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002062/0.7441, allocations: 92.77 kB / 0.9582 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.7441, allocations: 0 / 0.9582 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004618/0.7445, allocations: 192.4 kB / 0.9584 GB, free: 5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.7446, allocations: 53.78 kB / 0.9585 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.576e-05/0.7446, allocations: 118 kB / 0.9586 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.7447, allocations: 28.45 kB / 0.9586 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.944e-05/0.7447, allocations: 93.53 kB / 0.9587 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.7447, allocations: 31.52 kB / 0.9587 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.673e-05/0.7447, allocations: 18.78 kB / 0.9587 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.493e-05/0.7448, allocations: 325.2 kB / 0.959 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.7449, allocations: 40.45 kB / 0.9591 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.7451, allocations: 73.48 kB / 0.9591 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.7453, allocations: 108.7 kB / 0.9593 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.7453, allocations: 0 / 0.9593 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002912/0.7456, allocations: 151.2 kB / 0.9594 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.7456, allocations: 5.344 kB / 0.9594 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.7456, allocations: 1.406 kB / 0.9594 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.7456, allocations: 5 kB / 0.9594 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.7458, allocations: 21.95 kB / 0.9594 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.7458, allocations: 1.625 kB / 0.9594 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.106e-05/0.7458, allocations: 19.17 kB / 0.9594 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.7459, allocations: 4.125 kB / 0.9595 GB, free: 4.09 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 6.472e-05/0.7459, allocations: 127.2 kB / 0.9596 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.313e-05/0.746, allocations: 14.64 kB / 0.9596 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003101/0.7463, allocations: 149.8 kB / 0.9597 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.7463, allocations: 1.469 kB / 0.9597 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.7463, allocations: 9.297 kB / 0.9597 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.7463, allocations: 0 / 0.9597 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004068/0.7467, allocations: 425 kB / 0.9601 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.7467, allocations: 1.375 kB / 0.9601 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.513e-05/0.7468, allocations: 13.61 kB / 0.9602 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.7468, allocations: 5.375 kB / 0.9602 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.7468, allocations: 0 / 0.9602 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.7468, allocations: 1.375 kB / 0.9602 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.7468, allocations: 0 / 0.9602 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.7471, allocations: 254.9 kB / 0.9604 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.64e-05/0.7471, allocations: 78.48 kB / 0.9605 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.7472, allocations: 2.75 kB / 0.9605 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.981e-05/0.7473, allocations: 14.86 kB / 0.9605 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.74e-05/0.7473, allocations: 12.05 kB / 0.9605 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.096e-06/0.7473, allocations: 2.75 kB / 0.9605 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.253e-05/0.7474, allocations: 83.41 kB / 0.9606 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7474, allocations: 5.375 kB / 0.9606 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002336/0.7476, allocations: 19.11 kB / 0.9606 GB, free: 3.078 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004911/0.7481, allocations: 0.795 MB / 0.9614 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002858/0.7484, allocations: 111.2 kB / 0.9615 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7484, allocations: 0 / 0.9615 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001317/0.7485, allocations: 56.44 kB / 0.9616 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.7488, allocations: 12.56 kB / 0.9616 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.7501, allocations: 1.528 MB / 0.9631 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.953e-05/0.7503, allocations: 0.6881 MB / 0.9637 GB, free: 196 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.353e-05/0.7503, allocations: 6.375 kB / 0.9637 GB, free: 196 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/0.7503, allocations: 19.14 kB / 0.9638 GB, free: 180 kB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.7503, allocations: 0 / 0.9638 GB, free: 180 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01102/0.7614, allocations: 1.752 MB / 0.9655 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002468/0.7617, allocations: 216.8 kB / 0.9657 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.463, allocations: 3.938 kB / 0.9657 GB, free: 15.09 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches