Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0009117/0.0009117, 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.001084/0.001084, allocations: 223.7 kB / 22.26 MB, free: 3.703 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 1.006/1.006, allocations: 230.6 MB / 256 MB, free: 9.812 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.0389/0.0389, allocations: 12.18 MB / 324.6 MB, free: 6.285 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.0005291/0.0005291, allocations: 31.95 kB / 384.1 MB, free: 10.7 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.744/1.744, allocations: 353.8 MB / 0.7787 GB, free: 3.113 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.FirstOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.001396/0.001396, allocations: 114.9 kB / 1.06 GB, free: 24.96 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.248, allocations: 134.9 MB / 1.192 GB, free: 7.871 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001729/0.2498, allocations: 0.6872 MB / 1.192 GB, free: 7.188 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.251, allocations: 1.133 MB / 1.194 GB, free: 6.043 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.546e-05/0.2511, allocations: 0 / 1.194 GB, free: 6.043 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.503e-05/0.2511, allocations: 3.938 kB / 1.194 GB, free: 6.039 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 5.912e-05/0.2512, allocations: 7.938 kB / 1.194 GB, free: 6.031 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.2515, allocations: 63.75 kB / 1.194 GB, free: 5.969 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.2516, allocations: 67.83 kB / 1.194 GB, free: 5.902 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.2517, allocations: 11.98 kB / 1.194 GB, free: 5.891 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 7.242e-05/0.2518, allocations: 27.86 kB / 1.194 GB, free: 5.863 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.685e-05/0.2519, allocations: 31.91 kB / 1.194 GB, free: 5.832 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.2519, allocations: 4 kB / 1.194 GB, free: 5.828 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.979e-05/0.2519, allocations: 27.97 kB / 1.194 GB, free: 5.801 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.95e-05/0.252, allocations: 19.92 kB / 1.194 GB, free: 5.781 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 3.712e-05/0.252, allocations: 27.86 kB / 1.194 GB, free: 5.754 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.2521, allocations: 79.97 kB / 1.194 GB, free: 5.676 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2521, allocations: 4 kB / 1.194 GB, free: 5.672 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.794e-06/0.2521, allocations: 0 / 1.194 GB, free: 5.672 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.2521, allocations: 0 / 1.194 GB, free: 5.672 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004029/0.2525, allocations: 302.1 kB / 1.194 GB, free: 5.344 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2526, allocations: 12.03 kB / 1.194 GB, free: 5.332 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.436e-05/0.2526, allocations: 42.73 kB / 1.194 GB, free: 5.281 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.2527, allocations: 8.891 kB / 1.194 GB, free: 5.273 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.2529, allocations: 122.4 kB / 1.194 GB, free: 5.129 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.2529, allocations: 8.375 kB / 1.194 GB, free: 5.121 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.2529, allocations: 4.375 kB / 1.194 GB, free: 5.117 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001567/0.2531, allocations: 78.2 kB / 1.194 GB, free: 5.035 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2531, allocations: 3.938 kB / 1.194 GB, free: 5.031 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.2531, allocations: 8 kB / 1.194 GB, free: 5.023 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2531, allocations: 0 / 1.194 GB, free: 5.023 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.2532, allocations: 47.95 kB / 1.194 GB, free: 4.977 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004821/0.2537, allocations: 295.7 kB / 1.195 GB, free: 4.645 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/0.2539, allocations: 70.55 kB / 1.195 GB, free: 4.566 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.673e-05/0.254, allocations: 40.81 kB / 1.195 GB, free: 4.523 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.254, allocations: 0 / 1.195 GB, free: 4.523 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.2542, allocations: 95.48 kB / 1.195 GB, free: 4.418 MB / 0.823 GB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.2542, allocations: 4 kB / 1.195 GB, free: 4.414 MB / 0.823 GB Notification: Performance of matching and sorting (n=10): time 0.000577/0.2547, allocations: 173.4 kB / 1.195 GB, free: 4.238 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.2548, allocations: 59.41 kB / 1.195 GB, free: 4.168 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.255, allocations: 109.8 kB / 1.195 GB, free: 4.051 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.255, allocations: 33.7 kB / 1.195 GB, free: 4.012 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.255, allocations: 88.31 kB / 1.195 GB, free: 3.918 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.2551, allocations: 31.78 kB / 1.195 GB, free: 3.887 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.2551, allocations: 33.7 kB / 1.195 GB, free: 3.848 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 9.271e-05/0.2552, allocations: 318.8 kB / 1.196 GB, free: 3.527 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.869e-05/0.2553, allocations: 35.97 kB / 1.196 GB, free: 3.492 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.629e-05/0.2553, allocations: 70.53 kB / 1.196 GB, free: 3.414 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.2555, allocations: 102.4 kB / 1.196 GB, free: 3.305 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.2555, allocations: 0 / 1.196 GB, free: 3.305 MB / 0.823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00022/0.2557, allocations: 145.6 kB / 1.196 GB, free: 3.156 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.2558, allocations: 4 kB / 1.196 GB, free: 3.152 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2558, allocations: 0 / 1.196 GB, free: 3.152 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2558, allocations: 4 kB / 1.196 GB, free: 3.148 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.2559, allocations: 23.92 kB / 1.196 GB, free: 3.125 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.2559, allocations: 0 / 1.196 GB, free: 3.125 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.987e-05/0.2559, allocations: 11.98 kB / 1.196 GB, free: 3.113 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.2559, allocations: 4 kB / 1.196 GB, free: 3.109 MB / 0.823 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 0.0001009/0.256, allocations: 130.4 kB / 1.196 GB, free: 2.973 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/0.2561, allocations: 3.953 kB / 1.196 GB, free: 2.969 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002414/0.2563, allocations: 145.9 kB / 1.196 GB, free: 2.816 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2563, allocations: 0 / 1.196 GB, free: 2.816 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.2563, allocations: 256 / 1.196 GB, free: 2.816 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2563, allocations: 0 / 1.196 GB, free: 2.816 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004084/0.2567, allocations: 389.9 kB / 1.197 GB, free: 2.387 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2567, allocations: 0 / 1.197 GB, free: 2.387 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.14e-05/0.2568, allocations: 15.92 kB / 1.197 GB, free: 2.371 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.2568, allocations: 0 / 1.197 GB, free: 2.371 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.2568, allocations: 8.078 kB / 1.197 GB, free: 2.363 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.2568, allocations: 7.938 kB / 1.197 GB, free: 2.355 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2568, allocations: 0 / 1.197 GB, free: 2.355 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002558/0.2571, allocations: 231.4 kB / 1.197 GB, free: 2.113 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.367e-05/0.2571, allocations: 7.953 kB / 1.197 GB, free: 2.105 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.2571, allocations: 7.984 kB / 1.197 GB, free: 2.098 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.676e-05/0.2572, allocations: 4 kB / 1.197 GB, free: 2.094 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.757e-05/0.2572, allocations: 11.92 kB / 1.197 GB, free: 2.082 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.2572, allocations: 11.92 kB / 1.197 GB, free: 2.07 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.787e-05/0.2573, allocations: 83.28 kB / 1.197 GB, free: 1.988 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.2573, allocations: 4 kB / 1.197 GB, free: 1.984 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002083/0.2575, allocations: 20 kB / 1.197 GB, free: 1.965 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: 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.000551/0.258, allocations: 0.7709 MB / 1.198 GB, free: 1.168 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002851/0.2583, allocations: 99.88 kB / 1.198 GB, free: 1.07 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2583, allocations: 0 / 1.198 GB, free: 1.07 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 8.018e-05/0.2584, allocations: 43.91 kB / 1.198 GB, free: 1.027 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.2586, allocations: 14.02 kB / 1.198 GB, free: 1.016 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.2602, allocations: 1.501 MB / 1.2 GB, free: 15.43 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.2604, allocations: 0.6923 MB / 1.2 GB, free: 14.71 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 3.738e-05/0.2605, allocations: 12.38 kB / 1.2 GB, free: 14.7 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.127e-05/0.2605, allocations: 19.42 kB / 1.2 GB, free: 14.68 MB / 0.8387 GB Notification: Performance of SimCode: time 4.41e-07/0.2605, allocations: 0 / 1.2 GB, free: 14.68 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.2757, allocations: 2.224 MB / 1.202 GB, free: 12.59 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.275/6.55, allocations: 4.062 kB / 1.202 GB, free: 12.58 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.102549692615867] Failed to read output from testmodel.py, exit status != 0: 6.626313264481723 6.63547754 6.38161183 Calling exit ...