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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001524/0.001524, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.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.214/2.214, allocations: 390.3 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 64.11 kB / 0.8132 GB, free: 33.03 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2425, allocations: 140.4 MB / 0.9503 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002257/0.2448, allocations: 0.6793 MB / 0.9509 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.2463, allocations: 1.064 MB / 0.952 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.703e-05/0.2463, allocations: 4 kB / 0.952 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.928e-05/0.2464, allocations: 3.938 kB / 0.952 GB, free: 7.066 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.335e-05/0.2465, allocations: 3.938 kB / 0.952 GB, free: 7.062 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.2468, allocations: 51.81 kB / 0.952 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.418e-05/0.2469, allocations: 71.78 kB / 0.9521 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.671e-05/0.247, allocations: 15.98 kB / 0.9521 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.705e-05/0.2471, allocations: 27.91 kB / 0.9522 GB, free: 6.898 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.69e-05/0.2471, allocations: 31.91 kB / 0.9522 GB, free: 6.867 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.2472, allocations: 4 kB / 0.9522 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.677e-05/0.2472, allocations: 19.98 kB / 0.9522 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.313e-05/0.2473, allocations: 19.91 kB / 0.9522 GB, free: 6.824 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.954e-05/0.2473, allocations: 35.86 kB / 0.9523 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.2475, allocations: 75.8 kB / 0.9523 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2475, allocations: 0 / 0.9523 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2475, allocations: 0 / 0.9523 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.2475, allocations: 0 / 0.9523 GB, free: 6.715 MB / 0.7325 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.0006713/0.2482, allocations: 379.6 kB / 0.9527 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.2482, allocations: 8.031 kB / 0.9527 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.839e-05/0.2483, allocations: 12.84 kB / 0.9527 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.2485, allocations: 172.3 kB / 0.9529 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/0.2485, allocations: 12.3 kB / 0.9529 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.906e-05/0.2485, allocations: 8.375 kB / 0.9529 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/0.2488, allocations: 74.22 kB / 0.953 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.2488, allocations: 192 / 0.953 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.2488, allocations: 7.938 kB / 0.953 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.2488, allocations: 3.984 kB / 0.953 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.249, allocations: 55.95 kB / 0.953 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004982/0.2495, allocations: 308.7 kB / 0.9533 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.2497, allocations: 86.47 kB / 0.9534 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.2499, allocations: 44.83 kB / 0.9535 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.2499, allocations: 4 kB / 0.9535 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.2501, allocations: 99.42 kB / 0.9536 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.833e-06/0.2501, allocations: 0 / 0.9536 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0004957/0.2506, allocations: 165.5 kB / 0.9537 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.2507, allocations: 63.39 kB / 0.9538 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.625e-05/0.2508, allocations: 105.8 kB / 0.9539 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.2508, allocations: 37.69 kB / 0.9539 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.585e-05/0.2509, allocations: 84.38 kB / 0.954 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.2509, allocations: 27.64 kB / 0.954 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-05/0.251, allocations: 29.83 kB / 0.954 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.2511, allocations: 322.8 kB / 0.9544 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.2512, allocations: 43.97 kB / 0.9544 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.2513, allocations: 58.55 kB / 0.9545 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002396/0.2516, allocations: 102.4 kB / 0.9546 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2516, allocations: 4 kB / 0.9546 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003124/0.2519, allocations: 141.4 kB / 0.9547 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.252, allocations: 4 kB / 0.9547 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.252, allocations: 4 kB / 0.9547 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.252, allocations: 0 / 0.9547 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.2521, allocations: 23.98 kB / 0.9547 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.2521, allocations: 7.922 kB / 0.9547 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.707e-05/0.2522, allocations: 19.92 kB / 0.9547 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.2522, allocations: 4 kB / 0.9547 GB, free: 3.992 MB / 0.7325 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 9.807e-05/0.2523, allocations: 130.3 kB / 0.9549 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.799e-05/0.2524, allocations: 11.89 kB / 0.9549 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003369/0.2527, allocations: 138.3 kB / 0.955 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.2527, allocations: 3.984 kB / 0.955 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2527, allocations: 96 / 0.955 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2528, allocations: 11.94 kB / 0.955 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005119/0.2533, allocations: 402.4 kB / 0.9554 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2533, allocations: 0 / 0.9554 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.156e-05/0.2534, allocations: 15.98 kB / 0.9554 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.2534, allocations: 3.984 kB / 0.9554 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.2534, allocations: 0 / 0.9554 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.2534, allocations: 7.938 kB / 0.9554 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2534, allocations: 4.25 kB / 0.9554 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003456/0.2537, allocations: 235.3 kB / 0.9557 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.786e-05/0.2538, allocations: 85.02 kB / 0.9558 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.118e-05/0.2538, allocations: 8 kB / 0.9558 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.2539, allocations: 7.984 kB / 0.9558 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.364e-05/0.254, allocations: 7.984 kB / 0.9558 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.254, allocations: 15.94 kB / 0.9558 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.87e-05/0.2541, allocations: 79.28 kB / 0.9559 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2541, allocations: 0 / 0.9559 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002567/0.2543, allocations: 27.92 kB / 0.9559 GB, free: 2.715 MB / 0.7325 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.0001557/0.2545, allocations: 99.25 kB / 0.956 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003205/0.2548, allocations: 103.9 kB / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2548, allocations: 8.062 kB / 0.9561 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.255, allocations: 43.97 kB / 0.9561 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.2552, allocations: 12.36 kB / 0.9561 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004136/0.2557, allocations: 179.9 kB / 0.9563 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.256, allocations: 0.7 MB / 0.957 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.586e-05/0.256, allocations: 15.38 kB / 0.957 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.256, allocations: 0 / 0.957 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of Templates: time 0.002869/0.2589, allocations: 1.097 MB / 0.9581 GB, free: 416 kB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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