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.001064/0.001064, 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.000879/0.000879, 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.991/0.991, allocations: 230.6 MB / 256 MB, free: 9.617 MB / 202.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.7967/0.7967, allocations: 203.8 MB / 0.5042 GB, free: 10.43 MB / 410.7 MB " [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.0009601/0.0009601, allocations: 71.38 kB / 0.7182 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5104/0.5114, allocations: 102 MB / 0.8178 GB, free: 1.043 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001497/0.5129, allocations: 0.7221 MB / 0.8185 GB, free: 0.5898 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.514, allocations: 1.087 MB / 0.8196 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.444e-05/0.514, allocations: 1.281 kB / 0.8196 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.262e-05/0.514, allocations: 8.531 kB / 0.8196 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.173e-05/0.5141, allocations: 17.83 kB / 0.8196 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.5144, allocations: 45.03 kB / 0.8197 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.5145, allocations: 76.61 kB / 0.8197 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.5146, allocations: 20.12 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.23e-05/0.5147, allocations: 31.78 kB / 0.8198 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.273e-05/0.5147, allocations: 37.27 kB / 0.8198 GB, free: 15.67 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.5148, allocations: 6.125 kB / 0.8198 GB, free: 15.67 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.363e-05/0.5148, allocations: 15.11 kB / 0.8198 GB, free: 15.67 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.597e-05/0.5148, allocations: 18.12 kB / 0.8198 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.639e-05/0.5149, allocations: 23.48 kB / 0.8199 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.515, allocations: 75.19 kB / 0.8199 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.515, allocations: 11.47 kB / 0.82 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.974e-06/0.515, allocations: 0 / 0.82 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.515, allocations: 0 / 0.82 GB, free: 15.61 MB / 0.6198 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.0004312/0.5155, allocations: 305.2 kB / 0.8202 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.5155, allocations: 11.75 kB / 0.8203 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.282e-05/0.5155, allocations: 39.95 kB / 0.8203 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.11e-05/0.5156, allocations: 8.375 kB / 0.8203 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.279e-05/0.5157, allocations: 120.5 kB / 0.8204 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.5157, allocations: 2.5 kB / 0.8204 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.5157, allocations: 10.16 kB / 0.8204 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.5158, allocations: 68.22 kB / 0.8205 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.5158, allocations: 0 / 0.8205 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-06/0.5158, allocations: 0.7031 kB / 0.8205 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.5158, allocations: 11.03 kB / 0.8205 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.599e-05/0.5159, allocations: 41.11 kB / 0.8205 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000477/0.5164, allocations: 273.8 kB / 0.8208 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.5166, allocations: 52.47 kB / 0.8209 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.697e-05/0.5166, allocations: 33.36 kB / 0.8209 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.5166, allocations: 0.6562 kB / 0.8209 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.5168, allocations: 78.23 kB / 0.821 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.5168, allocations: 0 / 0.821 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0002967/0.5171, allocations: 135.4 kB / 0.8211 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.5172, allocations: 54.06 kB / 0.8211 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.661e-05/0.5172, allocations: 133.5 kB / 0.8213 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.5173, allocations: 33.78 kB / 0.8213 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.384e-05/0.5173, allocations: 87.58 kB / 0.8214 GB, free: 14.35 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.5173, allocations: 16.33 kB / 0.8214 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.201e-05/0.5174, allocations: 30.23 kB / 0.8214 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.295e-05/0.5174, allocations: 324.4 kB / 0.8217 GB, free: 14 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.256e-05/0.5175, allocations: 29.52 kB / 0.8218 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.802e-05/0.5176, allocations: 79.23 kB / 0.8218 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.5178, allocations: 115.3 kB / 0.822 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5178, allocations: 0 / 0.822 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001984/0.518, allocations: 132.5 kB / 0.8221 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.518, allocations: 5.625 kB / 0.8221 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.518, allocations: 1.5 kB / 0.8221 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.518, allocations: 4.25 kB / 0.8221 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.966e-05/0.5181, allocations: 20.08 kB / 0.8221 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.5181, allocations: 2.484 kB / 0.8221 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.303e-05/0.5181, allocations: 12.3 kB / 0.8221 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.5181, allocations: 5.609 kB / 0.8221 GB, free: 13.76 MB / 0.6198 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.271e-05/0.5182, allocations: 133.2 kB / 0.8223 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-06/0.5182, allocations: 7.094 kB / 0.8223 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.509e-05/0.5183, allocations: 7.391 kB / 0.8223 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.5183, allocations: 0 / 0.8223 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.5183, allocations: 0.6562 kB / 0.8223 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.5183, allocations: 0.7969 kB / 0.8223 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003286/0.5186, allocations: 339.3 kB / 0.8226 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.5186, allocations: 0 / 0.8226 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.183e-05/0.5186, allocations: 16.69 kB / 0.8226 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.5186, allocations: 1.094 kB / 0.8226 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.5186, allocations: 1.859 kB / 0.8226 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.5186, allocations: 3.938 kB / 0.8226 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5186, allocations: 4.641 kB / 0.8226 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001756/0.5188, allocations: 198 kB / 0.8228 GB, free: 13.16 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.008e-05/0.5188, allocations: 11.16 kB / 0.8228 GB, free: 13.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.5188, allocations: 1.828 kB / 0.8228 GB, free: 13.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.536e-05/0.5189, allocations: 14.06 kB / 0.8228 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.31e-05/0.5189, allocations: 13.23 kB / 0.8228 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.5189, allocations: 2.156 kB / 0.8229 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.96e-05/0.519, allocations: 92.92 kB / 0.8229 GB, free: 13.05 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.519, allocations: 1.062 kB / 0.8229 GB, free: 13.05 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001788/0.5191, allocations: 16.88 kB / 0.823 GB, free: 13.05 MB / 0.6198 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.0006767/0.5198, allocations: 0.7406 MB / 0.8237 GB, free: 12.37 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001753/0.52, allocations: 76.59 kB / 0.8238 GB, free: 12.35 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.52, allocations: 0 / 0.8238 GB, free: 12.35 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.486e-05/0.5201, allocations: 37.28 kB / 0.8238 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.5203, allocations: 19.34 kB / 0.8238 GB, free: 12.33 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.5214, allocations: 1.513 MB / 0.8253 GB, free: 10.96 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.206e-05/0.5214, allocations: 77.84 kB / 0.8254 GB, free: 10.89 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.391e-05/0.5215, allocations: 13.98 kB / 0.8254 GB, free: 10.88 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.5215, allocations: 20.61 kB / 0.8254 GB, free: 10.87 MB / 0.6198 GB Notification: Performance of SimCode: time 5.31e-07/0.5215, allocations: 5.312 kB / 0.8254 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01826/0.5398, allocations: 2.677 MB / 0.828 GB, free: 9.953 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.624/7.164, allocations: 12.94 kB / 0.828 GB, free: 9.941 MB / 0.6198 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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: 10.273441398050636] Failed to read output from testmodel.py, exit status != 0: 7.246295196004212 7.262611364 6.745328307 Calling exit ...