Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007743/0.0007743, allocations: 109.9 kB / 18.93 MB, free: 1.27 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007492/0.0007492, allocations: 219.2 kB / 22.26 MB, free: 3.84 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9156/0.9156, allocations: 230.6 MB / 256 MB, free: 9.809 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.03676/0.03676, allocations: 12.17 MB / 324.6 MB, free: 6.16 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0004707/0.0004707, allocations: 31.88 kB / 384.1 MB, free: 10.56 MB / 314.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo): time 1.646/1.646, allocations: 353.8 MB / 0.7787 GB, free: 3.148 MB / 0.5105 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AixLib requested package Modelica_DeviceDrivers of version 2.1.1. Modelica_DeviceDrivers 2.2.0 is used instead which states that it is fully compatible without conversion script needed. Notification: AixLib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 114.8 kB / 1.06 GB, free: 24.97 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.222, allocations: 134.9 MB / 1.192 GB, free: 7.906 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001422/0.2235, allocations: 0.6599 MB / 1.192 GB, free: 7.25 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0009926/0.2245, allocations: 1.118 MB / 1.193 GB, free: 6.121 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.144e-05/0.2245, allocations: 0 / 1.193 GB, free: 6.121 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.318e-05/0.2245, allocations: 3.938 kB / 1.193 GB, free: 6.117 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 5.8e-05/0.2246, allocations: 15.92 kB / 1.193 GB, free: 6.102 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.2249, allocations: 39.84 kB / 1.194 GB, free: 6.062 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 8.836e-05/0.225, allocations: 55.78 kB / 1.194 GB, free: 6.008 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.088e-05/0.2251, allocations: 11.98 kB / 1.194 GB, free: 5.996 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.113e-05/0.2251, allocations: 23.86 kB / 1.194 GB, free: 5.973 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 4.091e-05/0.2252, allocations: 15.92 kB / 1.194 GB, free: 5.957 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.194e-05/0.2252, allocations: 4 kB / 1.194 GB, free: 5.953 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.013e-05/0.2252, allocations: 27.98 kB / 1.194 GB, free: 5.926 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.2253, allocations: 11.97 kB / 1.194 GB, free: 5.914 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 3.139e-05/0.2253, allocations: 19.88 kB / 1.194 GB, free: 5.895 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.2254, allocations: 64.06 kB / 1.194 GB, free: 5.832 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2254, allocations: 0 / 1.194 GB, free: 5.832 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2254, allocations: 0 / 1.194 GB, free: 5.832 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.952e-06/0.2254, allocations: 0 / 1.194 GB, free: 5.832 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003719/0.2258, allocations: 286.1 kB / 1.194 GB, free: 5.52 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.2258, allocations: 8.031 kB / 1.194 GB, free: 5.512 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.659e-05/0.2258, allocations: 42.73 kB / 1.194 GB, free: 5.461 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.498e-05/0.2259, allocations: 4.891 kB / 1.194 GB, free: 5.457 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.2261, allocations: 114.4 kB / 1.194 GB, free: 5.32 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.2261, allocations: 12.38 kB / 1.194 GB, free: 5.309 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.201e-05/0.2261, allocations: 8.375 kB / 1.194 GB, free: 5.301 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/0.2262, allocations: 58.22 kB / 1.194 GB, free: 5.238 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.2262, allocations: 3.938 kB / 1.194 GB, free: 5.234 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.2262, allocations: 4 kB / 1.194 GB, free: 5.23 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2262, allocations: 3.984 kB / 1.194 GB, free: 5.227 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.037e-05/0.2263, allocations: 39.95 kB / 1.194 GB, free: 5.188 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003999/0.2267, allocations: 259.9 kB / 1.195 GB, free: 4.891 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.659e-05/0.2268, allocations: 50.48 kB / 1.195 GB, free: 4.832 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.829e-05/0.2269, allocations: 28.97 kB / 1.195 GB, free: 4.801 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.2269, allocations: 8.062 kB / 1.195 GB, free: 4.793 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001331/0.227, allocations: 71.38 kB / 1.195 GB, free: 4.711 MB / 0.823 GB Notification: Performance of pre-optimization done (n=6): time 1.834e-06/0.227, allocations: 0 / 1.195 GB, free: 4.711 MB / 0.823 GB Notification: Performance of matching and sorting (n=6): time 0.0002306/0.2273, allocations: 125.5 kB / 1.195 GB, free: 4.582 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.2273, allocations: 55.41 kB / 1.195 GB, free: 4.516 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.06e-05/0.2274, allocations: 105.8 kB / 1.195 GB, free: 4.402 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.2274, allocations: 29.7 kB / 1.195 GB, free: 4.367 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.37e-05/0.2274, allocations: 84.14 kB / 1.195 GB, free: 4.281 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.2274, allocations: 19.84 kB / 1.195 GB, free: 4.262 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/0.2274, allocations: 25.7 kB / 1.195 GB, free: 4.23 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 6.997e-05/0.2275, allocations: 318.8 kB / 1.195 GB, free: 3.91 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.2e-05/0.2276, allocations: 27.97 kB / 1.195 GB, free: 3.883 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.578e-05/0.2276, allocations: 64.2 kB / 1.196 GB, free: 3.805 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.2277, allocations: 92.12 kB / 1.196 GB, free: 3.699 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2277, allocations: 0 / 1.196 GB, free: 3.699 MB / 0.823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001436/0.2279, allocations: 109.5 kB / 1.196 GB, free: 3.586 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.2279, allocations: 5.719 kB / 1.196 GB, free: 3.582 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.2279, allocations: 4 kB / 1.196 GB, free: 3.578 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.2279, allocations: 0 / 1.196 GB, free: 3.578 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.628e-05/0.228, allocations: 24.08 kB / 1.196 GB, free: 3.555 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.228, allocations: 7.922 kB / 1.196 GB, free: 3.547 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.169e-05/0.228, allocations: 8 kB / 1.196 GB, free: 3.539 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.228, allocations: 4 kB / 1.196 GB, free: 3.535 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 0.0001175/0.2281, allocations: 118.9 kB / 1.196 GB, free: 3.41 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-06/0.2282, allocations: 7.938 kB / 1.196 GB, free: 3.402 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001529/0.2283, allocations: 106 kB / 1.196 GB, free: 3.289 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.2283, allocations: 4 kB / 1.196 GB, free: 3.285 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2283, allocations: 320 / 1.196 GB, free: 3.285 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2283, allocations: 0 / 1.196 GB, free: 3.285 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.2286, allocations: 317.6 kB / 1.196 GB, free: 2.926 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2286, allocations: 0 / 1.196 GB, free: 2.926 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.719e-05/0.2286, allocations: 15.92 kB / 1.196 GB, free: 2.91 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.2286, allocations: 0 / 1.196 GB, free: 2.91 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.2286, allocations: 4 kB / 1.196 GB, free: 2.906 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2286, allocations: 4 kB / 1.196 GB, free: 2.902 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2286, allocations: 0 / 1.196 GB, free: 2.902 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.2287, allocations: 195.4 kB / 1.197 GB, free: 2.695 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.611e-06/0.2287, allocations: 3.938 kB / 1.197 GB, free: 2.691 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.2288, allocations: 4 kB / 1.197 GB, free: 2.688 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.47e-05/0.2288, allocations: 15.98 kB / 1.197 GB, free: 2.672 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.2288, allocations: 7.922 kB / 1.197 GB, free: 2.664 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.2288, allocations: 4 kB / 1.197 GB, free: 2.66 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.841e-05/0.2289, allocations: 83.28 kB / 1.197 GB, free: 2.578 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.2289, allocations: 0 / 1.197 GB, free: 2.578 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001599/0.229, allocations: 15.94 kB / 1.197 GB, free: 2.562 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006501/0.2297, allocations: 0.7243 MB / 1.197 GB, free: 1.812 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001473/0.2298, allocations: 63.89 kB / 1.197 GB, free: 1.75 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.2298, allocations: 3.938 kB / 1.197 GB, free: 1.746 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.647e-05/0.2299, allocations: 40.2 kB / 1.197 GB, free: 1.707 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001802/0.2301, allocations: 15.94 kB / 1.197 GB, free: 1.691 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.2311, allocations: 1.41 MB / 1.199 GB, free: 184 kB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.2313, allocations: 0.6846 MB / 1.2 GB, free: 15.47 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 2.489e-05/0.2313, allocations: 4 kB / 1.2 GB, free: 15.46 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.259e-05/0.2314, allocations: 15.44 kB / 1.2 GB, free: 15.45 MB / 0.8387 GB Notification: Performance of SimCode: time 6.21e-07/0.2314, allocations: 7.938 kB / 1.2 GB, free: 15.44 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.2467, allocations: 1.91 MB / 1.201 GB, free: 13.66 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.413/6.66, allocations: 12.58 kB / 1.201 GB, free: 13.65 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.89148898050189] Failed to read output from testmodel.py, exit status != 0: 6.736898519098759 6.745896566 6.518836168 Calling exit ...