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.0006849/0.0006849, allocations: 105.5 kB / 18.95 MB, free: 1.188 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.000686/0.000686, allocations: 207.6 kB / 22.25 MB, free: 3.59 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.8782/0.8782, allocations: 230.6 MB / 256 MB, free: 9.582 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.03522/0.03522, allocations: 12.2 MB / 324.6 MB, free: 6.086 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.0005384/0.0005384, allocations: 23.97 kB / 384.1 MB, free: 10.52 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.517/1.517, allocations: 353.9 MB / 0.7787 GB, free: 4.57 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.001357/0.001357, allocations: 120.4 kB / 1.06 GB, free: 24.86 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1845, allocations: 134.9 MB / 1.192 GB, free: 7.551 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001305/0.1858, allocations: 0.6441 MB / 1.192 GB, free: 6.91 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0009522/0.1867, allocations: 1.106 MB / 1.193 GB, free: 5.793 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.075e-05/0.1868, allocations: 0 / 1.193 GB, free: 5.793 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.802e-05/0.1868, allocations: 3.938 kB / 1.193 GB, free: 5.789 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 5.594e-05/0.1868, allocations: 7.922 kB / 1.193 GB, free: 5.781 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.1871, allocations: 47.83 kB / 1.193 GB, free: 5.734 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 7.805e-05/0.1872, allocations: 39.92 kB / 1.193 GB, free: 5.695 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 8.641e-05/0.1873, allocations: 15.98 kB / 1.193 GB, free: 5.68 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 5.792e-05/0.1873, allocations: 27.84 kB / 1.194 GB, free: 5.652 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 3.964e-05/0.1874, allocations: 19.92 kB / 1.194 GB, free: 5.633 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.1874, allocations: 4 kB / 1.194 GB, free: 5.629 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 5.293e-05/0.1874, allocations: 19.98 kB / 1.194 GB, free: 5.609 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.036e-05/0.1875, allocations: 11.94 kB / 1.194 GB, free: 5.598 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 2.843e-05/0.1875, allocations: 19.91 kB / 1.194 GB, free: 5.578 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.1876, allocations: 56.08 kB / 1.194 GB, free: 5.523 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1876, allocations: 0 / 1.194 GB, free: 5.523 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1876, allocations: 0 / 1.194 GB, free: 5.523 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.1876, allocations: 0 / 1.194 GB, free: 5.523 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.0004123/0.188, allocations: 298.2 kB / 1.194 GB, free: 5.199 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1881, allocations: 8.031 kB / 1.194 GB, free: 5.191 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.79e-05/0.1881, allocations: 38.73 kB / 1.194 GB, free: 5.145 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.037e-05/0.1881, allocations: 8.891 kB / 1.194 GB, free: 5.137 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.838e-05/0.1882, allocations: 106.5 kB / 1.194 GB, free: 5.008 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.378e-06/0.1882, allocations: 4.312 kB / 1.194 GB, free: 5.004 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.745e-06/0.1882, allocations: 4.375 kB / 1.194 GB, free: 5 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.1884, allocations: 70.16 kB / 1.194 GB, free: 4.926 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1884, allocations: 3.938 kB / 1.194 GB, free: 4.922 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.1884, allocations: 4 kB / 1.194 GB, free: 4.918 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1884, allocations: 0 / 1.194 GB, free: 4.918 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.55e-05/0.1885, allocations: 43.95 kB / 1.194 GB, free: 4.875 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003293/0.1888, allocations: 239.8 kB / 1.194 GB, free: 4.598 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001062/0.1889, allocations: 58.47 kB / 1.194 GB, free: 4.531 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.021e-05/0.189, allocations: 28.97 kB / 1.195 GB, free: 4.5 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.189, allocations: 8 kB / 1.195 GB, free: 4.492 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001459/0.1891, allocations: 71.38 kB / 1.195 GB, free: 4.41 MB / 0.823 GB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.1891, allocations: 0 / 1.195 GB, free: 4.41 MB / 0.823 GB Notification: Performance of matching and sorting (n=6): time 0.0002454/0.1894, allocations: 125.6 kB / 1.195 GB, free: 4.281 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/0.1894, allocations: 51.41 kB / 1.195 GB, free: 4.219 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.588e-05/0.1895, allocations: 105.8 kB / 1.195 GB, free: 4.105 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.1895, allocations: 25.7 kB / 1.195 GB, free: 4.074 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.231e-05/0.1895, allocations: 96.03 kB / 1.195 GB, free: 3.977 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.1895, allocations: 19.95 kB / 1.195 GB, free: 3.957 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.991e-05/0.1896, allocations: 25.72 kB / 1.195 GB, free: 3.926 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.094e-05/0.1896, allocations: 318.8 kB / 1.195 GB, free: 3.605 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.193e-05/0.1897, allocations: 23.98 kB / 1.195 GB, free: 3.582 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.946e-05/0.1897, allocations: 51.41 kB / 1.195 GB, free: 3.52 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.1898, allocations: 83.33 kB / 1.195 GB, free: 3.426 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1898, allocations: 0 / 1.195 GB, free: 3.426 MB / 0.823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003763/0.1902, allocations: 93.59 kB / 1.196 GB, free: 3.328 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.1902, allocations: 9.875 kB / 1.196 GB, free: 3.32 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.1902, allocations: 7.922 kB / 1.196 GB, free: 3.312 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.1903, allocations: 0 / 1.196 GB, free: 3.312 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.417e-05/0.1903, allocations: 16.08 kB / 1.196 GB, free: 3.297 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1903, allocations: 4 kB / 1.196 GB, free: 3.293 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.086e-05/0.1904, allocations: 4 kB / 1.196 GB, free: 3.289 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.1904, allocations: 8 kB / 1.196 GB, free: 3.281 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 6.045e-05/0.1904, allocations: 125.7 kB / 1.196 GB, free: 3.148 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-06/0.1904, allocations: 7.953 kB / 1.196 GB, free: 3.141 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.1906, allocations: 102 kB / 1.196 GB, free: 3.031 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1906, allocations: 4 kB / 1.196 GB, free: 3.027 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1906, allocations: 0 / 1.196 GB, free: 3.027 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1906, allocations: 7.938 kB / 1.196 GB, free: 3.02 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002615/0.1909, allocations: 318.1 kB / 1.196 GB, free: 2.66 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1909, allocations: 0 / 1.196 GB, free: 2.66 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.884e-05/0.1909, allocations: 8 kB / 1.196 GB, free: 2.652 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1909, allocations: 64 / 1.196 GB, free: 2.652 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.1909, allocations: 11.98 kB / 1.196 GB, free: 2.641 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1909, allocations: 0 / 1.196 GB, free: 2.641 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1909, allocations: 0 / 1.196 GB, free: 2.641 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.1911, allocations: 199.4 kB / 1.196 GB, free: 2.43 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.601e-06/0.1911, allocations: 0 / 1.196 GB, free: 2.43 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.111e-05/0.1911, allocations: 3.984 kB / 1.196 GB, free: 2.426 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.585e-05/0.1911, allocations: 8 kB / 1.196 GB, free: 2.418 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.102e-05/0.1911, allocations: 7.922 kB / 1.196 GB, free: 2.41 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.1912, allocations: 7.938 kB / 1.196 GB, free: 2.402 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.695e-05/0.1912, allocations: 87.27 kB / 1.196 GB, free: 2.316 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.1912, allocations: 0 / 1.196 GB, free: 2.316 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001599/0.1913, allocations: 16 kB / 1.196 GB, free: 2.301 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.0003426/0.1917, allocations: 0.7241 MB / 1.197 GB, free: 1.551 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001529/0.1918, allocations: 63.89 kB / 1.197 GB, free: 1.488 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.1918, allocations: 0 / 1.197 GB, free: 1.488 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.402e-05/0.1919, allocations: 31.97 kB / 1.197 GB, free: 1.457 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001826/0.1921, allocations: 16.06 kB / 1.197 GB, free: 1.441 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009752/0.1931, allocations: 1.378 MB / 1.199 GB, free: 15.97 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.42e-05/0.1931, allocations: 63.34 kB / 1.199 GB, free: 15.89 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 3e-05/0.1931, allocations: 19.72 kB / 1.199 GB, free: 15.87 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.1932, allocations: 15.44 kB / 1.199 GB, free: 15.85 MB / 0.8387 GB Notification: Performance of SimCode: time 6.72e-07/0.1932, allocations: 0 / 1.199 GB, free: 15.85 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01572/0.2089, allocations: 2.315 MB / 1.201 GB, free: 13.67 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.963/6.172, allocations: 7.359 kB / 1.201 GB, free: 13.67 MB / 0.8387 GB " [Timeout remaining time 654] (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 & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler_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_Sampler.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.139530093409121] Failed to read output from testmodel.py, exit status != 0: 6.244834494777024 6.252768218 6.06360735 Calling exit ...