Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.0008422/0.0008422, allocations: 109.9 kB / 18.93 MB, free: 1.266 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.0008969/0.0008969, allocations: 218.3 kB / 22.26 MB, free: 3.699 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.9232/0.9232, 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.04013/0.04013, allocations: 12.18 MB / 324.6 MB, free: 6.281 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.000416/0.000416, allocations: 27.95 kB / 384.1 MB, free: 10.69 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.68/1.68, allocations: 353.8 MB / 0.7787 GB, free: 3.141 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.ZeroOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",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.001534/0.001534, allocations: 122.2 kB / 1.06 GB, free: 25 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2326, allocations: 134.9 MB / 1.192 GB, free: 7.961 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001579/0.2342, allocations: 0.671 MB / 1.192 GB, free: 7.293 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001157/0.2353, allocations: 1.141 MB / 1.194 GB, free: 6.141 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.388e-05/0.2354, allocations: 0 / 1.194 GB, free: 6.141 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.803e-05/0.2354, allocations: 3.938 kB / 1.194 GB, free: 6.137 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.31e-05/0.2355, allocations: 3.938 kB / 1.194 GB, free: 6.133 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.2358, allocations: 47.83 kB / 1.194 GB, free: 6.086 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 9.058e-05/0.2359, allocations: 51.78 kB / 1.194 GB, free: 6.035 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.592e-05/0.236, allocations: 8 kB / 1.194 GB, free: 6.027 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.785e-05/0.2361, allocations: 23.92 kB / 1.194 GB, free: 6.004 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.192e-05/0.2361, allocations: 27.91 kB / 1.194 GB, free: 5.977 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 3.954e-05/0.2362, allocations: 4 kB / 1.194 GB, free: 5.973 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.2363, allocations: 19.98 kB / 1.194 GB, free: 5.953 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.006e-05/0.2363, allocations: 11.98 kB / 1.194 GB, free: 5.941 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 3.537e-05/0.2363, allocations: 23.86 kB / 1.194 GB, free: 5.918 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.2365, allocations: 64.06 kB / 1.194 GB, free: 5.855 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2365, allocations: 0 / 1.194 GB, free: 5.855 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2365, allocations: 0 / 1.194 GB, free: 5.855 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.2365, allocations: 0 / 1.194 GB, free: 5.855 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004948/0.237, allocations: 302.1 kB / 1.194 GB, free: 5.527 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.237, allocations: 12.03 kB / 1.194 GB, free: 5.516 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.787e-05/0.237, allocations: 38.69 kB / 1.194 GB, free: 5.469 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.596e-05/0.2371, allocations: 8.891 kB / 1.194 GB, free: 5.461 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.267e-05/0.2372, allocations: 106.5 kB / 1.194 GB, free: 5.332 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.2372, allocations: 4.375 kB / 1.194 GB, free: 5.328 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.2372, allocations: 8.359 kB / 1.194 GB, free: 5.32 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.2373, allocations: 66.22 kB / 1.194 GB, free: 5.25 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.2373, allocations: 3.938 kB / 1.194 GB, free: 5.246 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.2374, allocations: 8 kB / 1.194 GB, free: 5.238 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.2374, allocations: 7.969 kB / 1.194 GB, free: 5.23 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.2375, allocations: 39.91 kB / 1.194 GB, free: 5.191 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003668/0.2378, allocations: 251.9 kB / 1.195 GB, free: 4.902 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001546/0.238, allocations: 62.55 kB / 1.195 GB, free: 4.832 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.72e-05/0.2381, allocations: 28.95 kB / 1.195 GB, free: 4.801 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.2381, allocations: 0 / 1.195 GB, free: 4.801 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001451/0.2382, allocations: 79.31 kB / 1.195 GB, free: 4.711 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.2382, allocations: 0 / 1.195 GB, free: 4.711 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002825/0.2385, allocations: 125.7 kB / 1.195 GB, free: 4.582 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.264e-05/0.2386, allocations: 51.41 kB / 1.195 GB, free: 4.52 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.963e-05/0.2387, allocations: 105.8 kB / 1.195 GB, free: 4.406 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.2387, allocations: 33.7 kB / 1.195 GB, free: 4.367 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.533e-05/0.2387, allocations: 84.09 kB / 1.195 GB, free: 4.281 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.2387, allocations: 23.78 kB / 1.195 GB, free: 4.258 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.2388, allocations: 25.7 kB / 1.195 GB, free: 4.227 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.386e-05/0.2388, allocations: 322.8 kB / 1.196 GB, free: 3.902 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.516e-05/0.2389, allocations: 23.97 kB / 1.196 GB, free: 3.879 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.701e-05/0.239, allocations: 64.2 kB / 1.196 GB, free: 3.801 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.2391, allocations: 96.19 kB / 1.196 GB, free: 3.691 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2391, allocations: 0 / 1.196 GB, free: 3.691 MB / 0.823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000155/0.2393, allocations: 121.5 kB / 1.196 GB, free: 3.566 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.2393, allocations: 4 kB / 1.196 GB, free: 3.562 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2393, allocations: 4 kB / 1.196 GB, free: 3.559 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.2393, allocations: 3.938 kB / 1.196 GB, free: 3.555 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.982e-05/0.2394, allocations: 15.98 kB / 1.196 GB, free: 3.539 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.2394, allocations: 4 kB / 1.196 GB, free: 3.535 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.404e-05/0.2394, allocations: 7.984 kB / 1.196 GB, free: 3.527 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.2394, allocations: 4 kB / 1.196 GB, free: 3.523 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.679e-05/0.2395, allocations: 127.7 kB / 1.196 GB, free: 3.391 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.2395, allocations: 3.953 kB / 1.196 GB, free: 3.387 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.2397, allocations: 110 kB / 1.196 GB, free: 3.27 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2397, allocations: 0 / 1.196 GB, free: 3.27 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.2397, allocations: 0 / 1.196 GB, free: 3.27 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2397, allocations: 0 / 1.196 GB, free: 3.27 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002871/0.24, allocations: 333.5 kB / 1.196 GB, free: 2.895 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.24, allocations: 4 kB / 1.196 GB, free: 2.891 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.984e-05/0.2401, allocations: 7.984 kB / 1.196 GB, free: 2.883 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.2401, allocations: 4 kB / 1.196 GB, free: 2.879 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.2401, allocations: 0 / 1.196 GB, free: 2.879 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2401, allocations: 480 / 1.196 GB, free: 2.879 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0002441/0.2404, allocations: 3.984 kB / 1.196 GB, free: 2.875 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.2405, allocations: 211.6 kB / 1.197 GB, free: 2.652 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.045e-05/0.2406, allocations: 7.938 kB / 1.197 GB, free: 2.645 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.2406, allocations: 7.984 kB / 1.197 GB, free: 2.637 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.651e-05/0.2406, allocations: 4 kB / 1.197 GB, free: 2.633 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.623e-05/0.2407, allocations: 15.92 kB / 1.197 GB, free: 2.617 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.2407, allocations: 48 / 1.197 GB, free: 2.617 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.745e-05/0.2407, allocations: 83.27 kB / 1.197 GB, free: 2.535 MB / 0.823 GB Notification: Performance of sort global known variables: time 5.1e-08/0.2407, allocations: 0 / 1.197 GB, free: 2.535 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.000165/0.2409, allocations: 20.19 kB / 1.197 GB, free: 2.516 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0003444/0.2412, allocations: 0.7357 MB / 1.197 GB, free: 1.754 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001526/0.2414, allocations: 71.88 kB / 1.198 GB, free: 1.684 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.2414, allocations: 4 kB / 1.198 GB, free: 1.68 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.499e-05/0.2414, allocations: 27.97 kB / 1.198 GB, free: 1.652 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001944/0.2416, allocations: 15.92 kB / 1.198 GB, free: 1.637 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.2427, allocations: 1.418 MB / 1.199 GB, free: 120 kB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001799/0.2429, allocations: 0.6885 MB / 1.2 GB, free: 15.4 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 2.906e-05/0.2429, allocations: 4 kB / 1.2 GB, free: 15.4 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.039e-05/0.2429, allocations: 15.44 kB / 1.2 GB, free: 15.38 MB / 0.8387 GB Notification: Performance of SimCode: time 1.422e-06/0.2429, allocations: 0 / 1.2 GB, free: 15.38 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01529/0.2582, allocations: 1.954 MB / 1.202 GB, free: 13.56 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.451/6.71, allocations: 3.938 kB / 1.202 GB, free: 13.56 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.014003990218043] Failed to read output from testmodel.py, exit status != 0: 6.783723757602274 6.79232501 6.554224227 Calling exit ...