Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.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.0007597/0.0007597, 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.0007459/0.0007459, allocations: 221.7 kB / 22.26 MB, free: 3.688 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.9994/0.9994, allocations: 230.6 MB / 256 MB, free: 9.801 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.03883/0.03883, allocations: 12.17 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.0005188/0.0005188, allocations: 27.94 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.715/1.715, allocations: 353.8 MB / 0.7787 GB, free: 3.133 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.Sampler,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_Sampler",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.001427/0.001427, allocations: 117.2 kB / 1.06 GB, free: 25.07 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2447, allocations: 134.9 MB / 1.192 GB, free: 7.945 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00158/0.2462, allocations: 0.658 MB / 1.192 GB, free: 7.289 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.2473, allocations: 1.11 MB / 1.193 GB, free: 6.168 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.2474, allocations: 0 / 1.193 GB, free: 6.168 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.721e-05/0.2474, allocations: 11.92 kB / 1.193 GB, free: 6.156 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.23e-05/0.2475, allocations: 3.938 kB / 1.193 GB, free: 6.152 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002652/0.2477, allocations: 43.89 kB / 1.194 GB, free: 6.109 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 8.502e-05/0.2478, allocations: 47.8 kB / 1.194 GB, free: 6.062 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.248, allocations: 19.97 kB / 1.194 GB, free: 6.043 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.441e-05/0.2481, allocations: 15.92 kB / 1.194 GB, free: 6.027 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 4.796e-05/0.2481, allocations: 23.92 kB / 1.194 GB, free: 6.004 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.2481, allocations: 4 kB / 1.194 GB, free: 6 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.041e-05/0.2482, allocations: 19.98 kB / 1.194 GB, free: 5.98 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.729e-05/0.2482, allocations: 11.98 kB / 1.194 GB, free: 5.969 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.2482, allocations: 27.86 kB / 1.194 GB, free: 5.941 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001328/0.2484, allocations: 64 kB / 1.194 GB, free: 5.879 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2484, allocations: 0 / 1.194 GB, free: 5.879 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.654e-06/0.2484, allocations: 0 / 1.194 GB, free: 5.879 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.2484, allocations: 0 / 1.194 GB, free: 5.879 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.000444/0.2488, allocations: 290.2 kB / 1.194 GB, free: 5.562 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.2489, allocations: 8.031 kB / 1.194 GB, free: 5.555 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001769/0.249, allocations: 34.75 kB / 1.194 GB, free: 5.512 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.469e-05/0.2491, allocations: 12.89 kB / 1.194 GB, free: 5.5 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.692e-05/0.2492, allocations: 114.5 kB / 1.194 GB, free: 5.363 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.2492, allocations: 384 / 1.194 GB, free: 5.363 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.2492, allocations: 8.375 kB / 1.194 GB, free: 5.355 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001645/0.2494, allocations: 58.17 kB / 1.194 GB, free: 5.293 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.2494, allocations: 3.938 kB / 1.194 GB, free: 5.289 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.2494, allocations: 4 kB / 1.194 GB, free: 5.285 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.2495, allocations: 7.984 kB / 1.194 GB, free: 5.277 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.084e-05/0.2495, allocations: 43.89 kB / 1.194 GB, free: 5.234 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003653/0.2499, allocations: 255.8 kB / 1.195 GB, free: 4.941 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.25, allocations: 50.55 kB / 1.195 GB, free: 4.883 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.922e-05/0.2501, allocations: 28.91 kB / 1.195 GB, free: 4.852 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.2501, allocations: 4 kB / 1.195 GB, free: 4.848 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.2503, allocations: 75.38 kB / 1.195 GB, free: 4.762 MB / 0.823 GB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.2503, allocations: 3.938 kB / 1.195 GB, free: 4.758 MB / 0.823 GB Notification: Performance of matching and sorting (n=6): time 0.0002569/0.2506, allocations: 117.6 kB / 1.195 GB, free: 4.637 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.2506, allocations: 51.41 kB / 1.195 GB, free: 4.574 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.201e-05/0.2507, allocations: 113.8 kB / 1.195 GB, free: 4.453 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.2507, allocations: 29.7 kB / 1.195 GB, free: 4.418 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.78e-05/0.2507, allocations: 92.16 kB / 1.195 GB, free: 4.324 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.2507, allocations: 15.89 kB / 1.195 GB, free: 4.309 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.2508, allocations: 17.72 kB / 1.195 GB, free: 4.285 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.328e-05/0.2508, allocations: 318.8 kB / 1.195 GB, free: 3.965 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.72e-05/0.2509, allocations: 27.97 kB / 1.195 GB, free: 3.938 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.099e-05/0.251, allocations: 51.41 kB / 1.196 GB, free: 3.875 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.2511, allocations: 79.33 kB / 1.196 GB, free: 3.785 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2511, allocations: 8 kB / 1.196 GB, free: 3.777 MB / 0.823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.00014/0.2513, allocations: 93.59 kB / 1.196 GB, free: 3.68 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2513, allocations: 4 kB / 1.196 GB, free: 3.676 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.2513, allocations: 4 kB / 1.196 GB, free: 3.672 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.2513, allocations: 0 / 1.196 GB, free: 3.672 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.692e-05/0.2514, allocations: 19.92 kB / 1.196 GB, free: 3.652 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.2514, allocations: 3.984 kB / 1.196 GB, free: 3.648 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.002e-05/0.2514, allocations: 8.094 kB / 1.196 GB, free: 3.641 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.2514, allocations: 4 kB / 1.196 GB, free: 3.637 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 7.444e-05/0.2515, allocations: 124.1 kB / 1.196 GB, free: 3.508 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.064e-05/0.2515, allocations: 8.438 kB / 1.196 GB, free: 3.5 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001737/0.2517, allocations: 106 kB / 1.196 GB, free: 3.387 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2517, allocations: 64 / 1.196 GB, free: 3.387 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.2517, allocations: 8 kB / 1.196 GB, free: 3.379 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2517, allocations: 4 kB / 1.196 GB, free: 3.375 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003189/0.252, allocations: 317.6 kB / 1.196 GB, free: 3.016 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.252, allocations: 0 / 1.196 GB, free: 3.016 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.105e-05/0.252, allocations: 12 kB / 1.196 GB, free: 3.004 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.252, allocations: 3.938 kB / 1.196 GB, free: 3 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.2521, allocations: 3.984 kB / 1.196 GB, free: 2.996 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.2521, allocations: 3.938 kB / 1.196 GB, free: 2.992 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2521, allocations: 4.156 kB / 1.196 GB, free: 2.988 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.2522, allocations: 195.4 kB / 1.196 GB, free: 2.781 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-06/0.2522, allocations: 0 / 1.196 GB, free: 2.781 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.2522, allocations: 3.984 kB / 1.196 GB, free: 2.777 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.011e-05/0.2523, allocations: 8 kB / 1.196 GB, free: 2.77 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/0.2523, allocations: 11.92 kB / 1.197 GB, free: 2.758 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.2523, allocations: 4 kB / 1.197 GB, free: 2.754 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.042e-05/0.2524, allocations: 87.27 kB / 1.197 GB, free: 2.668 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.2524, allocations: 0 / 1.197 GB, free: 2.668 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001626/0.2525, allocations: 11.94 kB / 1.197 GB, free: 2.656 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * 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.0004376/0.253, allocations: 0.7361 MB / 1.197 GB, free: 1.895 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000148/0.2531, allocations: 59.89 kB / 1.197 GB, free: 1.836 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.2531, allocations: 0 / 1.197 GB, free: 1.836 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.865e-05/0.2532, allocations: 36.03 kB / 1.197 GB, free: 1.801 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.2534, allocations: 8.125 kB / 1.197 GB, free: 1.793 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.2545, allocations: 1.391 MB / 1.199 GB, free: 312 kB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/0.2547, allocations: 0.6807 MB / 1.199 GB, free: 15.6 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 3.391e-05/0.2547, allocations: 11.73 kB / 1.199 GB, free: 15.59 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.731e-05/0.2547, allocations: 11.44 kB / 1.199 GB, free: 15.57 MB / 0.8387 GB Notification: Performance of SimCode: time 5.81e-07/0.2547, allocations: 4 kB / 1.199 GB, free: 15.57 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.2741, allocations: 1.882 MB / 1.201 GB, free: 13.82 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.274/6.548, allocations: 6.938 kB / 1.201 GB, free: 13.82 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.033720767125487] Failed to read output from testmodel.py, exit status != 0: 6.623732588253915 6.634190712 6.383731395 Calling exit ...