Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.0008666/0.0008666, allocations: 80.45 kB / 19.15 MB, free: 0.7734 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.0008607/0.0008607, allocations: 162 kB / 22.43 MB, free: 2.141 MB / 18.57 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.8745/0.8745, allocations: 177.2 MB / 202.8 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.6774/0.6774, allocations: 155 MB / 414.2 MB, free: 496 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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(IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.0009672/0.0009672, allocations: 72.17 kB / 0.6187 GB, free: 13.24 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.41, allocations: 102 MB / 0.7183 GB, free: 23.08 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001461/0.4114, allocations: 0.7189 MB / 0.719 GB, free: 22.63 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.0009879/0.4124, allocations: 1.096 MB / 0.72 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.639e-05/0.4125, allocations: 1.094 kB / 0.72 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 2.998e-05/0.4125, allocations: 8.547 kB / 0.72 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 6.445e-05/0.4126, allocations: 15.55 kB / 0.7201 GB, free: 21.82 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.4129, allocations: 50.62 kB / 0.7201 GB, free: 21.79 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.000103/0.413, allocations: 73.39 kB / 0.7202 GB, free: 21.75 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.4131, allocations: 12.3 kB / 0.7202 GB, free: 21.75 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 8.728e-05/0.4132, allocations: 43.22 kB / 0.7202 GB, free: 21.73 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 5.099e-05/0.4132, allocations: 32.75 kB / 0.7203 GB, free: 21.71 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.4132, allocations: 6.031 kB / 0.7203 GB, free: 21.71 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 5.251e-05/0.4133, allocations: 18.44 kB / 0.7203 GB, free: 21.71 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.303e-05/0.4133, allocations: 21.05 kB / 0.7203 GB, free: 21.69 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 3.39e-05/0.4133, allocations: 22.94 kB / 0.7203 GB, free: 21.68 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.4135, allocations: 100.6 kB / 0.7204 GB, free: 21.63 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.4135, allocations: 0 / 0.7204 GB, free: 21.63 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.843e-06/0.4135, allocations: 0 / 0.7204 GB, free: 21.63 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.4135, allocations: 0 / 0.7204 GB, free: 21.63 MB / 0.6355 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.0003766/0.4139, allocations: 309 kB / 0.7207 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.4139, allocations: 10.44 kB / 0.7207 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.337e-05/0.4139, allocations: 33.98 kB / 0.7208 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.414, allocations: 7.891 kB / 0.7208 GB, free: 21.3 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.179e-05/0.414, allocations: 120.2 kB / 0.7209 GB, free: 21.16 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.414, allocations: 3.312 kB / 0.7209 GB, free: 21.16 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.414, allocations: 3.906 kB / 0.7209 GB, free: 21.16 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.4142, allocations: 76.98 kB / 0.721 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.4142, allocations: 0 / 0.721 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-06/0.4142, allocations: 5.406 kB / 0.721 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4142, allocations: 2.312 kB / 0.721 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.158e-05/0.4143, allocations: 46.38 kB / 0.721 GB, free: 21.1 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000414/0.4147, allocations: 284.7 kB / 0.7213 GB, free: 20.84 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.4148, allocations: 50.47 kB / 0.7213 GB, free: 20.8 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.344e-05/0.4149, allocations: 28.47 kB / 0.7214 GB, free: 20.79 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.4149, allocations: 2.125 kB / 0.7214 GB, free: 20.79 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.4151, allocations: 77.84 kB / 0.7214 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.4151, allocations: 0 / 0.7214 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002791/0.4153, allocations: 139.8 kB / 0.7216 GB, free: 20.67 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.4154, allocations: 54.25 kB / 0.7216 GB, free: 20.61 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.687e-05/0.4154, allocations: 127.7 kB / 0.7217 GB, free: 20.5 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.488e-06/0.4155, allocations: 30.89 kB / 0.7218 GB, free: 20.46 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.357e-05/0.4155, allocations: 88.64 kB / 0.7219 GB, free: 20.38 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.4155, allocations: 19.42 kB / 0.7219 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.4155, allocations: 26.98 kB / 0.7219 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.446e-05/0.4156, allocations: 323.5 kB / 0.7222 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.97e-05/0.4157, allocations: 35.56 kB / 0.7222 GB, free: 20.01 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.125e-05/0.4157, allocations: 70.58 kB / 0.7223 GB, free: 19.95 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000139/0.4159, allocations: 112.1 kB / 0.7224 GB, free: 19.86 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4159, allocations: 1.219 kB / 0.7224 GB, free: 19.86 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001879/0.4161, allocations: 126.6 kB / 0.7225 GB, free: 19.8 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.4161, allocations: 6.031 kB / 0.7225 GB, free: 19.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4161, allocations: 1.844 kB / 0.7226 GB, free: 19.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.4161, allocations: 6.406 kB / 0.7226 GB, free: 19.8 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.845e-05/0.4162, allocations: 21.03 kB / 0.7226 GB, free: 19.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.4162, allocations: 3.859 kB / 0.7226 GB, free: 19.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.656e-05/0.4163, allocations: 19.8 kB / 0.7226 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.4163, allocations: 5.141 kB / 0.7226 GB, free: 19.79 MB / 0.6355 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 6.249e-05/0.4163, allocations: 125.9 kB / 0.7227 GB, free: 19.66 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.242e-05/0.4163, allocations: 6.797 kB / 0.7227 GB, free: 19.66 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.84e-05/0.4164, allocations: 11.97 kB / 0.7227 GB, free: 19.65 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4164, allocations: 0 / 0.7227 GB, free: 19.65 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.4164, allocations: 5.094 kB / 0.7227 GB, free: 19.64 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4164, allocations: 0.8906 kB / 0.7227 GB, free: 19.64 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003021/0.4167, allocations: 335.8 kB / 0.7231 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.4167, allocations: 0 / 0.7231 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.332e-05/0.4167, allocations: 12.42 kB / 0.7231 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.4167, allocations: 0.9062 kB / 0.7231 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.4167, allocations: 2.141 kB / 0.7231 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.4167, allocations: 5 kB / 0.7231 GB, free: 19.34 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4167, allocations: 0 / 0.7231 GB, free: 19.34 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001638/0.4169, allocations: 213.3 kB / 0.7233 GB, free: 19.18 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.768e-06/0.4169, allocations: 23.23 kB / 0.7233 GB, free: 19.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.4169, allocations: 5.734 kB / 0.7233 GB, free: 19.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.483e-05/0.417, allocations: 10.03 kB / 0.7233 GB, free: 19.15 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.267e-05/0.417, allocations: 9 kB / 0.7233 GB, free: 19.15 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.417, allocations: 2.594 kB / 0.7233 GB, free: 19.15 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.471e-05/0.417, allocations: 91.81 kB / 0.7234 GB, free: 19.07 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.417, allocations: 5.062 kB / 0.7234 GB, free: 19.07 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001771/0.4172, allocations: 17.52 kB / 0.7234 GB, free: 19.06 MB / 0.6355 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.0003039/0.4175, allocations: 0.7317 MB / 0.7242 GB, free: 18.39 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001726/0.4177, allocations: 72.98 kB / 0.7242 GB, free: 18.37 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4177, allocations: 0 / 0.7242 GB, free: 18.37 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.96e-05/0.4178, allocations: 43.22 kB / 0.7243 GB, free: 18.36 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.418, allocations: 10.81 kB / 0.7243 GB, free: 18.35 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.419, allocations: 1.53 MB / 0.7258 GB, free: 16.98 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.897e-05/0.419, allocations: 73.28 kB / 0.7258 GB, free: 16.91 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.256e-05/0.4191, allocations: 9.031 kB / 0.7259 GB, free: 16.91 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.102e-05/0.4191, allocations: 22.02 kB / 0.7259 GB, free: 16.89 MB / 0.6355 GB Notification: Performance of SimCode: time 7.01e-07/0.4191, allocations: 1.156 kB / 0.7259 GB, free: 16.89 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01823/0.4373, allocations: 2.812 MB / 0.7286 GB, free: 15.93 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.546/6.983, allocations: 5.031 kB / 0.7286 GB, free: 15.93 MB / 0.6355 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.546632108977064] Failed to read output from testmodel.py, exit status != 0: 7.061864776071161 7.071093146 6.655915163 Calling exit ...