Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.699/2.699, allocations: 287.5 MB / 302.4 MB, free: 8.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001288/0.001288, allocations: 184.9 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.149/2.149, allocations: 205.4 MB / 0.6297 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009355/0.0009353, allocations: 81.69 kB / 0.743 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007061/0.0007067, allocations: 12.16 kB / 0.8659 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.228, allocations: 115.3 MB / 0.9785 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.000839/0.2289, allocations: 381.9 kB / 0.9788 GB, free: 27.9 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001375/0.2302, allocations: 1.036 MB / 0.9798 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.905e-05/0.2303, allocations: 4 kB / 0.9798 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.47e-05/0.2303, allocations: 4 kB / 0.9798 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.468e-05/0.2304, allocations: 3.938 kB / 0.9798 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.2307, allocations: 31.91 kB / 0.9799 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.554e-05/0.2308, allocations: 39.91 kB / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.692e-05/0.2308, allocations: 7.984 kB / 0.9799 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.76e-05/0.2309, allocations: 11.94 kB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.908e-05/0.231, allocations: 15.92 kB / 0.9799 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.399e-05/0.231, allocations: 0 / 0.9799 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.69e-05/0.2311, allocations: 19.98 kB / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.602e-05/0.2311, allocations: 11.97 kB / 0.98 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.822e-05/0.2311, allocations: 33.64 kB / 0.98 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.87e-05/0.2312, allocations: 31.94 kB / 0.98 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2313, allocations: 3.938 kB / 0.98 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.687e-06/0.2313, allocations: 4 kB / 0.98 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.2313, allocations: 0 / 0.98 GB, free: 26.62 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004874/0.2318, allocations: 357.2 kB / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.2318, allocations: 12.02 kB / 0.9804 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.193e-05/0.2319, allocations: 30.56 kB / 0.9804 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.002e-05/0.2319, allocations: 7.906 kB / 0.9804 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.988e-05/0.232, allocations: 171 kB / 0.9806 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.232, allocations: 4 kB / 0.9806 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.2321, allocations: 7.984 kB / 0.9806 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002415/0.2323, allocations: 73.59 kB / 0.9807 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.2323, allocations: 0 / 0.9807 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.2324, allocations: 0 / 0.9807 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.2324, allocations: 0 / 0.9807 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002787/0.2327, allocations: 47.91 kB / 0.9807 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004807/0.2332, allocations: 284.9 kB / 0.981 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.2334, allocations: 50.48 kB / 0.981 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.2336, allocations: 32.94 kB / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.2336, allocations: 4 kB / 0.9811 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002474/0.2339, allocations: 75.38 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 2.044e-06/0.2339, allocations: 0 / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0005418/0.2344, allocations: 117.5 kB / 0.9813 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.2345, allocations: 63.3 kB / 0.9813 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.315e-05/0.2346, allocations: 113.8 kB / 0.9814 GB, free: 25 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.2346, allocations: 29.7 kB / 0.9815 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.403e-05/0.2346, allocations: 84.14 kB / 0.9815 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.2347, allocations: 19.73 kB / 0.9816 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/0.2347, allocations: 0 / 0.9816 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.734e-05/0.2347, allocations: 314.8 kB / 0.9819 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.2349, allocations: 31.97 kB / 0.9819 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.2351, allocations: 51.42 kB / 0.9819 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.2352, allocations: 31.97 kB / 0.982 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2353, allocations: 4 kB / 0.982 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003762/0.2356, allocations: 105.5 kB / 0.9821 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2357, allocations: 4 kB / 0.9821 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2357, allocations: 4.125 kB / 0.9821 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.2357, allocations: 4 kB / 0.9821 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.2359, allocations: 20.23 kB / 0.9821 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.2359, allocations: 0 / 0.9821 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.236, allocations: 23.84 kB / 0.9821 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.236, allocations: 4 kB / 0.9821 GB, free: 24.25 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.345e-05/0.2361, allocations: 119.1 kB / 0.9822 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.483e-05/0.2362, allocations: 4 kB / 0.9823 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003744/0.2365, allocations: 105.5 kB / 0.9824 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.2366, allocations: 0 / 0.9824 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2366, allocations: 0 / 0.9824 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2366, allocations: 0 / 0.9824 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005132/0.2371, allocations: 358.4 kB / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.2371, allocations: 0 / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.611e-05/0.2372, allocations: 8 kB / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2372, allocations: 3.938 kB / 0.9827 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.2373, allocations: 11.98 kB / 0.9827 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2373, allocations: 0 / 0.9827 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.2373, allocations: 3.953 kB / 0.9827 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00036/0.2377, allocations: 187.5 kB / 0.9829 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.662e-05/0.2377, allocations: 81.02 kB / 0.983 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.2377, allocations: 4 kB / 0.983 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.2379, allocations: 11.98 kB / 0.983 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.2379, allocations: 7.891 kB / 0.983 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.238, allocations: 7.984 kB / 0.983 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.853e-05/0.238, allocations: 83.28 kB / 0.9831 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.7e-07/0.238, allocations: 0 / 0.9831 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003176/0.2383, allocations: 12 kB / 0.9831 GB, free: 23.16 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006043/0.239, allocations: 0.7412 MB / 0.9838 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003708/0.2393, allocations: 67.89 kB / 0.9839 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2394, allocations: 0 / 0.9839 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.2395, allocations: 36.22 kB / 0.9839 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.2399, allocations: 4 kB / 0.9839 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.2411, allocations: 0.4903 MB / 0.9844 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.2412, allocations: 0.6848 MB / 0.9851 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.086e-05/0.2413, allocations: 3.984 kB / 0.9851 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.713e-05/0.2414, allocations: 11.44 kB / 0.9851 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of SimCode: time 8.72e-07/0.2414, allocations: 3.938 kB / 0.9851 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.2626, allocations: 1.447 MB / 0.9865 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002703/0.263, allocations: 187.8 kB / 0.9867 GB, free: 19.46 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.624/2.887, allocations: 0 / 0.9867 GB, free: 19.46 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)