Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.001123/0.001123, 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.0008924/0.0008924, allocations: 213.8 kB / 22.25 MB, free: 3.711 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.9788/0.9788, 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.0379/0.0379, allocations: 12.18 MB / 324.6 MB, free: 6.27 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.0005433/0.0005433, allocations: 27.89 kB / 384.1 MB, free: 10.68 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.726/1.726, allocations: 353.8 MB / 0.7787 GB, free: 3.121 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.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.001463/0.001463, allocations: 123 kB / 1.06 GB, free: 25.04 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2366, allocations: 134.9 MB / 1.192 GB, free: 7.941 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001897/0.2385, allocations: 0.7532 MB / 1.193 GB, free: 7.191 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001109/0.2396, allocations: 1.129 MB / 1.194 GB, free: 6.051 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.76e-05/0.2396, allocations: 3.938 kB / 1.194 GB, free: 6.047 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.991e-05/0.2397, allocations: 3.938 kB / 1.194 GB, free: 6.043 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 8.569e-05/0.2397, allocations: 15.86 kB / 1.194 GB, free: 6.027 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.2401, allocations: 51.83 kB / 1.194 GB, free: 5.977 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.2402, allocations: 67.83 kB / 1.194 GB, free: 5.91 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.2403, allocations: 20.17 kB / 1.194 GB, free: 5.887 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 8.02e-05/0.2404, allocations: 31.86 kB / 1.194 GB, free: 5.855 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.624e-05/0.2404, allocations: 31.91 kB / 1.194 GB, free: 5.824 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.2404, allocations: 4 kB / 1.194 GB, free: 5.82 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.532e-05/0.2405, allocations: 23.92 kB / 1.194 GB, free: 5.797 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.124e-05/0.2405, allocations: 15.92 kB / 1.194 GB, free: 5.781 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 4.31e-05/0.2406, allocations: 31.86 kB / 1.194 GB, free: 5.75 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.2407, allocations: 75.97 kB / 1.194 GB, free: 5.676 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2407, allocations: 4 kB / 1.194 GB, free: 5.672 MB / 0.823 GB Notification: Performance of FrontEnd: time 3.106e-06/0.2407, allocations: 0 / 1.194 GB, free: 5.672 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.2407, 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004376/0.2412, allocations: 310 kB / 1.194 GB, free: 5.34 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.2412, allocations: 12.03 kB / 1.194 GB, free: 5.328 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.031e-05/0.2412, allocations: 34.75 kB / 1.194 GB, free: 5.285 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.2413, allocations: 8.891 kB / 1.194 GB, free: 5.277 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.022e-05/0.2414, allocations: 114.5 kB / 1.194 GB, free: 5.141 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.2414, allocations: 12.3 kB / 1.194 GB, free: 5.129 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.2414, allocations: 8.375 kB / 1.194 GB, free: 5.121 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.2415, allocations: 65.98 kB / 1.195 GB, free: 5.051 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.2415, allocations: 4 kB / 1.195 GB, free: 5.047 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.2415, allocations: 0 / 1.195 GB, free: 5.047 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2415, allocations: 0 / 1.195 GB, free: 5.047 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.801e-05/0.2416, allocations: 43.95 kB / 1.195 GB, free: 5.004 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004427/0.2421, allocations: 299.7 kB / 1.195 GB, free: 4.668 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.2422, allocations: 54.5 kB / 1.195 GB, free: 4.605 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.047e-05/0.2422, allocations: 28.95 kB / 1.195 GB, free: 4.574 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.2422, allocations: 4 kB / 1.195 GB, free: 4.57 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001289/0.2424, allocations: 75.41 kB / 1.195 GB, free: 4.484 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.2424, allocations: 8 kB / 1.195 GB, free: 4.477 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002494/0.2426, allocations: 129.6 kB / 1.195 GB, free: 4.344 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.466e-05/0.2427, allocations: 55.41 kB / 1.195 GB, free: 4.277 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.199e-05/0.2427, allocations: 113.8 kB / 1.195 GB, free: 4.156 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.2427, allocations: 33.7 kB / 1.195 GB, free: 4.117 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.239e-05/0.2428, allocations: 92.08 kB / 1.195 GB, free: 4.023 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.46e-05/0.2428, allocations: 15.91 kB / 1.195 GB, free: 4.008 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.188e-05/0.2428, allocations: 29.7 kB / 1.195 GB, free: 3.973 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.122e-05/0.2429, allocations: 326.8 kB / 1.196 GB, free: 3.645 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.76e-05/0.243, allocations: 31.92 kB / 1.196 GB, free: 3.613 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.691e-05/0.2431, allocations: 73.92 kB / 1.196 GB, free: 3.52 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.2432, allocations: 109.9 kB / 1.196 GB, free: 3.391 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2432, allocations: 0 / 1.196 GB, free: 3.391 MB / 0.823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001717/0.2434, allocations: 133.4 kB / 1.196 GB, free: 3.254 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2434, allocations: 8 kB / 1.196 GB, free: 3.246 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2434, allocations: 4 kB / 1.196 GB, free: 3.242 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.2434, allocations: 8.219 kB / 1.196 GB, free: 3.234 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.77e-05/0.2435, allocations: 15.98 kB / 1.196 GB, free: 3.219 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.2435, allocations: 4 kB / 1.196 GB, free: 3.215 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.094e-05/0.2435, allocations: 15.92 kB / 1.196 GB, free: 3.199 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.2435, allocations: 4 kB / 1.196 GB, free: 3.195 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * 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.24e-05/0.2436, allocations: 123.4 kB / 1.196 GB, free: 3.066 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.382e-06/0.2436, allocations: 7.953 kB / 1.196 GB, free: 3.059 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.626e-05/0.2436, allocations: 16.36 kB / 1.196 GB, free: 3.039 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2436, allocations: 4 kB / 1.196 GB, free: 3.035 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2436, allocations: 0 / 1.196 GB, free: 3.035 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2436, allocations: 0 / 1.196 GB, free: 3.035 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003184/0.244, allocations: 345.5 kB / 1.197 GB, free: 2.648 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.244, allocations: 0 / 1.197 GB, free: 2.648 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.45e-05/0.244, allocations: 7.984 kB / 1.197 GB, free: 2.641 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.244, allocations: 0 / 1.197 GB, free: 2.641 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.244, allocations: 8 kB / 1.197 GB, free: 2.633 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.244, allocations: 7.938 kB / 1.197 GB, free: 2.625 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.244, allocations: 0 / 1.197 GB, free: 2.625 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001507/0.2441, allocations: 195.4 kB / 1.197 GB, free: 2.418 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.007e-06/0.2442, allocations: 11.94 kB / 1.197 GB, free: 2.406 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.009e-05/0.2442, allocations: 0 / 1.197 GB, free: 2.406 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.119e-05/0.2442, allocations: 11.92 kB / 1.197 GB, free: 2.395 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.2442, allocations: 19.92 kB / 1.197 GB, free: 2.375 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.2443, allocations: 0 / 1.197 GB, free: 2.375 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.666e-05/0.2443, allocations: 95.86 kB / 1.197 GB, free: 2.281 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.2443, allocations: 0 / 1.197 GB, free: 2.281 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001649/0.2445, allocations: 19.94 kB / 1.197 GB, free: 2.262 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * 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.0003926/0.2448, allocations: 0.7405 MB / 1.198 GB, free: 1.496 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001727/0.245, allocations: 79.94 kB / 1.198 GB, free: 1.418 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.245, allocations: 0 / 1.198 GB, free: 1.418 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.778e-05/0.2451, allocations: 28.42 kB / 1.198 GB, free: 1.391 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001939/0.2453, allocations: 19.92 kB / 1.198 GB, free: 1.371 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.2466, allocations: 1.526 MB / 1.199 GB, free: 15.73 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.2468, allocations: 0.6924 MB / 1.2 GB, free: 15.01 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 2.867e-05/0.2468, allocations: 11.92 kB / 1.2 GB, free: 15 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.777e-05/0.2468, allocations: 19.44 kB / 1.2 GB, free: 14.98 MB / 0.8387 GB Notification: Performance of SimCode: time 5.21e-07/0.2468, allocations: 0 / 1.2 GB, free: 14.98 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01646/0.2633, allocations: 2.24 MB / 1.202 GB, free: 12.88 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.892/7.156, allocations: 9.469 kB / 1.202 GB, free: 12.88 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv --start-time 1 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 AixLib_AixLib_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.736879665404558] Failed to read output from testmodel.py, exit status != 0: 7.235790961422026 7.244632114 7.002303664 Calling exit ...