Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.0009398/0.0009398, 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.0009662/0.0009662, allocations: 222.9 kB / 22.26 MB, free: 3.691 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.9445/0.9445, 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.037/0.037, allocations: 12.18 MB / 324.6 MB, free: 6.293 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.0004587/0.0004587, allocations: 39.83 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.717/1.717, 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.TriggeredSampler,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.001621/0.001621, allocations: 124.3 kB / 1.06 GB, free: 24.96 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.239, allocations: 134.9 MB / 1.192 GB, free: 7.914 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001585/0.2406, allocations: 0.7417 MB / 1.192 GB, free: 7.176 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.2418, allocations: 1.234 MB / 1.194 GB, free: 5.93 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.729e-05/0.2419, allocations: 0 / 1.194 GB, free: 5.93 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.247e-05/0.2419, allocations: 7.875 kB / 1.194 GB, free: 5.922 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 7.407e-05/0.242, allocations: 11.92 kB / 1.194 GB, free: 5.91 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004605/0.2425, allocations: 142.1 kB / 1.194 GB, free: 5.773 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.000166/0.2426, allocations: 123.8 kB / 1.194 GB, free: 5.652 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.2427, allocations: 16.17 kB / 1.194 GB, free: 5.633 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 9.037e-05/0.2428, allocations: 51.84 kB / 1.194 GB, free: 5.582 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 9.454e-05/0.2429, allocations: 51.86 kB / 1.194 GB, free: 5.531 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.2429, allocations: 12 kB / 1.194 GB, free: 5.52 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.803e-05/0.243, allocations: 31.98 kB / 1.194 GB, free: 5.488 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.314e-05/0.243, allocations: 15.92 kB / 1.194 GB, free: 5.473 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 5.744e-05/0.2431, allocations: 43.86 kB / 1.194 GB, free: 5.43 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001797/0.2433, allocations: 139.7 kB / 1.194 GB, free: 5.293 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2433, allocations: 0 / 1.194 GB, free: 5.293 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2433, allocations: 4 kB / 1.194 GB, free: 5.289 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.2433, allocations: 0 / 1.194 GB, free: 5.289 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004871/0.2438, allocations: 339.8 kB / 1.195 GB, free: 4.922 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.2438, allocations: 12.03 kB / 1.195 GB, free: 4.91 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.739e-05/0.2438, allocations: 34.75 kB / 1.195 GB, free: 4.867 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.531e-05/0.2439, allocations: 16.88 kB / 1.195 GB, free: 4.852 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.716e-05/0.244, allocations: 114.4 kB / 1.195 GB, free: 4.715 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.244, allocations: 8.375 kB / 1.195 GB, free: 4.707 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.244, allocations: 16.38 kB / 1.195 GB, free: 4.691 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001567/0.2442, allocations: 73.91 kB / 1.195 GB, free: 4.613 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.2442, allocations: 0 / 1.195 GB, free: 4.613 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.2442, allocations: 3.984 kB / 1.195 GB, free: 4.609 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.2442, allocations: 4 kB / 1.195 GB, free: 4.605 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.979e-05/0.2443, allocations: 43.95 kB / 1.195 GB, free: 4.562 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004423/0.2448, allocations: 319.7 kB / 1.195 GB, free: 4.207 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.2449, allocations: 54.55 kB / 1.195 GB, free: 4.145 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/0.245, allocations: 28.91 kB / 1.195 GB, free: 4.113 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.245, allocations: 3.984 kB / 1.195 GB, free: 4.109 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.2452, allocations: 91.45 kB / 1.195 GB, free: 4.008 MB / 0.823 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.2452, allocations: 3.938 kB / 1.195 GB, free: 4.004 MB / 0.823 GB Notification: Performance of matching and sorting (n=8): time 0.0005657/0.2457, allocations: 149.8 kB / 1.196 GB, free: 3.852 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.2458, allocations: 55.41 kB / 1.196 GB, free: 3.785 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.344e-05/0.2459, allocations: 117.8 kB / 1.196 GB, free: 3.66 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.2459, allocations: 33.7 kB / 1.196 GB, free: 3.621 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.816e-05/0.2459, allocations: 96.09 kB / 1.196 GB, free: 3.523 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.2459, allocations: 31.75 kB / 1.196 GB, free: 3.492 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.958e-05/0.246, allocations: 41.7 kB / 1.196 GB, free: 3.445 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.443e-05/0.2461, allocations: 318.8 kB / 1.196 GB, free: 3.125 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.2462, allocations: 51.95 kB / 1.196 GB, free: 3.074 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.2463, allocations: 97.05 kB / 1.196 GB, free: 2.961 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.2465, allocations: 146.8 kB / 1.197 GB, free: 2.793 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2465, allocations: 0 / 1.197 GB, free: 2.793 MB / 0.823 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002873/0.2468, allocations: 211.1 kB / 1.197 GB, free: 2.574 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 4.026e-05/0.2468, allocations: 41.69 kB / 1.197 GB, free: 2.527 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2468, allocations: 4 kB / 1.197 GB, free: 2.523 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2468, allocations: 0 / 1.197 GB, free: 2.523 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.966e-05/0.2469, allocations: 20.14 kB / 1.197 GB, free: 2.504 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.2469, allocations: 3.938 kB / 1.197 GB, free: 2.5 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.247, allocations: 35.91 kB / 1.197 GB, free: 2.465 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.247, allocations: 15.94 kB / 1.197 GB, free: 2.449 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.958e-05/0.2471, allocations: 117.8 kB / 1.197 GB, free: 2.324 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.305e-05/0.2471, allocations: 7.953 kB / 1.197 GB, free: 2.316 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.2473, allocations: 125.9 kB / 1.197 GB, free: 2.184 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2473, allocations: 4 kB / 1.197 GB, free: 2.18 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2473, allocations: 0 / 1.197 GB, free: 2.18 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2473, allocations: 48 / 1.197 GB, free: 2.18 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.2477, allocations: 361.5 kB / 1.197 GB, free: 1.777 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2477, allocations: 0 / 1.197 GB, free: 1.777 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.785e-05/0.2477, allocations: 12 kB / 1.197 GB, free: 1.766 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2477, allocations: 0 / 1.197 GB, free: 1.766 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.2477, allocations: 3.984 kB / 1.197 GB, free: 1.762 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2477, allocations: 3.938 kB / 1.197 GB, free: 1.758 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2477, allocations: 0 / 1.197 GB, free: 1.758 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.2479, allocations: 215.4 kB / 1.198 GB, free: 1.531 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-06/0.2479, allocations: 3.953 kB / 1.198 GB, free: 1.527 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.2479, allocations: 8 kB / 1.198 GB, free: 1.52 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.635e-05/0.248, allocations: 15.92 kB / 1.198 GB, free: 1.504 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.248, allocations: 7.922 kB / 1.198 GB, free: 1.496 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.248, allocations: 7.938 kB / 1.198 GB, free: 1.488 MB / 0.823 GB Notification: Performance of sorting global known variables: time 4.075e-05/0.248, allocations: 91.81 kB / 1.198 GB, free: 1.398 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.248, allocations: 0 / 1.198 GB, free: 1.398 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001853/0.2482, allocations: 24 kB / 1.198 GB, free: 1.375 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004189/0.2486, allocations: 0.7534 MB / 1.199 GB, free: 0.5977 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002548/0.2489, allocations: 167.3 kB / 1.199 GB, free: 432 kB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2489, allocations: 4.312 kB / 1.199 GB, free: 428 kB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 6.559e-05/0.249, allocations: 27.98 kB / 1.199 GB, free: 400 kB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.2492, allocations: 21.28 kB / 1.199 GB, free: 380 kB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.2507, allocations: 1.712 MB / 1.2 GB, free: 14.54 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.2509, allocations: 0.6923 MB / 1.201 GB, free: 13.82 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 3.968e-05/0.2509, allocations: 4 kB / 1.201 GB, free: 13.82 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.1e-05/0.251, allocations: 27.42 kB / 1.201 GB, free: 13.79 MB / 0.8387 GB Notification: Performance of SimCode: time 9.02e-07/0.251, allocations: 0 / 1.201 GB, free: 13.79 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.2706, allocations: 2.702 MB / 1.204 GB, free: 11.23 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.884/7.155, allocations: 12.48 kB / 1.204 GB, free: 11.22 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.666437954641879] Failed to read output from testmodel.py, exit status != 0: 7.234682568348944 7.244355524 6.998407238 Calling exit ...