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.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: "" <> 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.001369/0.001369, 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.001469/0.001469, allocations: 190.3 kB / 16.25 MB, free: 6.633 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.471/1.471, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.339/2.339, allocations: 390.2 MB / 0.6644 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 67.89 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.717/0.7184, allocations: 140.4 MB / 0.9492 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001706/0.7202, allocations: 0.7518 MB / 0.95 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00106/0.7212, allocations: 1.059 MB / 0.951 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.473e-05/0.7213, allocations: 0 / 0.951 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.966e-05/0.7213, allocations: 3.938 kB / 0.951 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.591e-05/0.7214, allocations: 1.125 kB / 0.951 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002766/0.7217, allocations: 46.52 kB / 0.9511 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.66e-05/0.7218, allocations: 75.02 kB / 0.9511 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.749e-05/0.7219, allocations: 9.75 kB / 0.9511 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.943e-05/0.7219, allocations: 31 kB / 0.9512 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.04e-05/0.722, allocations: 31.36 kB / 0.9512 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.722, allocations: 7.281 kB / 0.9512 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.138e-05/0.7221, allocations: 20.02 kB / 0.9512 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.885e-05/0.7221, allocations: 14.22 kB / 0.9512 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.556e-05/0.7222, allocations: 27.48 kB / 0.9513 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.7223, allocations: 68.31 kB / 0.9513 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.7223, allocations: 7.984 kB / 0.9513 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7223, allocations: 1.219 kB / 0.9513 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.7223, allocations: 0 / 0.9513 GB, free: 7.52 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.0005093/0.7228, allocations: 384.6 kB / 0.9517 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.7229, allocations: 14.59 kB / 0.9517 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.898e-05/0.7229, allocations: 32.22 kB / 0.9517 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.114e-05/0.7229, allocations: 3.812 kB / 0.9517 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.417e-05/0.723, allocations: 178.7 kB / 0.9519 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.723, allocations: 7.031 kB / 0.9519 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.723, allocations: 5.875 kB / 0.9519 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.7232, allocations: 79.08 kB / 0.952 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.7233, allocations: 3.938 kB / 0.952 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.7233, allocations: 4.906 kB / 0.952 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.7233, allocations: 1.219 kB / 0.952 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.7235, allocations: 54.23 kB / 0.9521 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004181/0.7239, allocations: 316.5 kB / 0.9524 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.7241, allocations: 78.89 kB / 0.9524 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.7242, allocations: 45.17 kB / 0.9525 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.7242, allocations: 5.281 kB / 0.9525 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.7244, allocations: 99.83 kB / 0.9526 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.7245, allocations: 0 / 0.9526 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004526/0.7249, allocations: 165.4 kB / 0.9527 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.725, allocations: 62.41 kB / 0.9528 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.8e-05/0.725, allocations: 105.3 kB / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.725, allocations: 36.89 kB / 0.9529 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.7251, allocations: 89.31 kB / 0.953 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/0.7251, allocations: 27.52 kB / 0.9531 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.551e-05/0.7252, allocations: 33.05 kB / 0.9531 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.247e-05/0.7252, allocations: 320.7 kB / 0.9534 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.7253, allocations: 40.22 kB / 0.9534 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.7254, allocations: 63.78 kB / 0.9535 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.7257, allocations: 111.3 kB / 0.9536 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.7257, allocations: 0 / 0.9536 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000283/0.726, allocations: 141.7 kB / 0.9537 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.726, allocations: 5.156 kB / 0.9537 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.726, allocations: 5.031 kB / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.726, allocations: 9.281 kB / 0.9537 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.7261, allocations: 23.3 kB / 0.9538 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.7262, allocations: 4.875 kB / 0.9538 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.972e-05/0.7262, allocations: 5.312 kB / 0.9538 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.7263, allocations: 8.75 kB / 0.9538 GB, free: 5.262 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.499e-05/0.7263, allocations: 126.5 kB / 0.9539 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.7263, allocations: 6.844 kB / 0.9539 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003306/0.7267, allocations: 148.8 kB / 0.9541 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.7267, allocations: 1.156 kB / 0.9541 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.7267, allocations: 0 / 0.9541 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.7267, allocations: 1.594 kB / 0.9541 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004251/0.7271, allocations: 406.6 kB / 0.9544 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.7272, allocations: 1.094 kB / 0.9544 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.775e-05/0.7272, allocations: 15.11 kB / 0.9545 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.7272, allocations: 1.094 kB / 0.9545 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.7273, allocations: 1.25 kB / 0.9545 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.7273, allocations: 5.062 kB / 0.9545 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.7273, allocations: 3.984 kB / 0.9545 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/0.7276, allocations: 237.1 kB / 0.9547 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.902e-05/0.7276, allocations: 82.42 kB / 0.9548 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.7276, allocations: 6.406 kB / 0.9548 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.7277, allocations: 8.297 kB / 0.9548 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/0.7278, allocations: 11.98 kB / 0.9548 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.7278, allocations: 10.28 kB / 0.9548 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.668e-05/0.7278, allocations: 83.64 kB / 0.9549 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7278, allocations: 1.156 kB / 0.9549 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002655/0.7281, allocations: 18.88 kB / 0.9549 GB, free: 4.258 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.0005005/0.7286, allocations: 0.7669 MB / 0.9557 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003012/0.7289, allocations: 102.5 kB / 0.9558 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.7289, allocations: 1.375 kB / 0.9558 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.7291, allocations: 55.12 kB / 0.9558 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.7293, allocations: 22.77 kB / 0.9558 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.7308, allocations: 1.51 MB / 0.9573 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.7309, allocations: 0.69 MB / 0.958 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.826e-05/0.731, allocations: 4.438 kB / 0.958 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.438e-05/0.731, allocations: 20.73 kB / 0.958 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.731, allocations: 0 / 0.958 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01304/0.7441, allocations: 1.876 MB / 0.9598 GB, free: 432 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/0.7443, allocations: 213.6 kB / 0.96 GB, free: 172 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/2.571, allocations: 1.312 kB / 0.96 GB, free: 172 kB / 0.7169 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