Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 100.3 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.388/2.388, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004749/0.0004751, allocations: 12 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7961/0.7966, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.0009798/0.7977, allocations: 476.7 kB / 0.9541 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001258/0.7989, allocations: 1.052 MB / 0.9551 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.087e-05/0.799, allocations: 1.469 kB / 0.9551 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.817e-05/0.799, allocations: 7.922 kB / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.976e-05/0.7991, allocations: 10.23 kB / 0.9551 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.7994, allocations: 44.2 kB / 0.9552 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.702e-05/0.7995, allocations: 38.27 kB / 0.9552 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.7996, allocations: 14.92 kB / 0.9552 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.324e-05/0.7997, allocations: 21.3 kB / 0.9552 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.799e-05/0.7998, allocations: 32.72 kB / 0.9553 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.7998, allocations: 3.625 kB / 0.9553 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.325e-05/0.7999, allocations: 12.77 kB / 0.9553 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.781e-05/0.7999, allocations: 9.297 kB / 0.9553 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.497e-05/0.7999, allocations: 38.92 kB / 0.9553 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001013/0.8, allocations: 48.84 kB / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.8, allocations: 0 / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.976e-06/0.8, allocations: 0 / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.8, allocations: 4 kB / 0.9554 GB, free: 6.66 MB / 0.7169 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.0005062/0.8006, allocations: 372.8 kB / 0.9557 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.8006, allocations: 8.219 kB / 0.9557 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.04e-05/0.8007, allocations: 43.73 kB / 0.9558 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.268e-05/0.8007, allocations: 11.89 kB / 0.9558 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.694e-05/0.8008, allocations: 178.6 kB / 0.956 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.8008, allocations: 6.469 kB / 0.956 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.8009, allocations: 11.58 kB / 0.956 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/0.8011, allocations: 70.16 kB / 0.956 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.8011, allocations: 0 / 0.956 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.8011, allocations: 0 / 0.956 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.8011, allocations: 1.312 kB / 0.956 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.8013, allocations: 66.47 kB / 0.9561 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005865/0.8019, allocations: 323.3 kB / 0.9564 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.8021, allocations: 57.83 kB / 0.9565 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.8021, allocations: 1.312 kB / 0.9565 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002212/0.8023, allocations: 94.72 kB / 0.9566 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.8023, allocations: 0 / 0.9566 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004305/0.8028, allocations: 145.9 kB / 0.9567 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.8028, allocations: 52.84 kB / 0.9567 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.286e-05/0.8029, allocations: 129.4 kB / 0.9569 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.8029, allocations: 25.7 kB / 0.9569 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.719e-05/0.803, allocations: 90.89 kB / 0.957 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.803, allocations: 22.81 kB / 0.957 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-06/0.803, allocations: 1.75 kB / 0.957 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.293e-05/0.8031, allocations: 316.2 kB / 0.9573 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.8032, allocations: 40 kB / 0.9573 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.8033, allocations: 78.73 kB / 0.9574 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.8035, allocations: 40.02 kB / 0.9575 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.8035, allocations: 0.8438 kB / 0.9575 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002934/0.8038, allocations: 142.4 kB / 0.9576 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.8038, allocations: 9.859 kB / 0.9576 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.8038, allocations: 6.312 kB / 0.9576 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.8038, allocations: 2.562 kB / 0.9576 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.804, allocations: 22.64 kB / 0.9576 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.804, allocations: 2.25 kB / 0.9576 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.591e-05/0.8041, allocations: 24.11 kB / 0.9577 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.8041, allocations: 4.25 kB / 0.9577 GB, free: 4.527 MB / 0.7169 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.719e-05/0.8042, allocations: 120.5 kB / 0.9578 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.39e-05/0.8042, allocations: 11.19 kB / 0.9578 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.975e-05/0.8042, allocations: 21.38 kB / 0.9578 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.8042, allocations: 1.094 kB / 0.9578 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.8042, allocations: 0 / 0.9578 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.8042, allocations: 1 kB / 0.9578 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003978/0.8047, allocations: 378.8 kB / 0.9582 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.8047, allocations: 3.953 kB / 0.9582 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.993e-05/0.8047, allocations: 8.438 kB / 0.9582 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.8047, allocations: 0 / 0.9582 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.8047, allocations: 4.953 kB / 0.9582 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.8047, allocations: 1.312 kB / 0.9582 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8048, allocations: 0 / 0.9582 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002586/0.805, allocations: 213.3 kB / 0.9584 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.027e-05/0.8051, allocations: 87.31 kB / 0.9585 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.8051, allocations: 5.016 kB / 0.9585 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-05/0.8052, allocations: 6.406 kB / 0.9585 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.314e-05/0.8052, allocations: 15.17 kB / 0.9585 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.8052, allocations: 5.094 kB / 0.9585 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.116e-05/0.8053, allocations: 101.1 kB / 0.9586 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8053, allocations: 0 / 0.9586 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002497/0.8055, allocations: 13.53 kB / 0.9586 GB, free: 3.629 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000518/0.8061, allocations: 0.7498 MB / 0.9594 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002681/0.8063, allocations: 96.92 kB / 0.9594 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.8064, allocations: 1.969 kB / 0.9594 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.8065, allocations: 40.69 kB / 0.9595 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.8067, allocations: 12.78 kB / 0.9595 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007386/0.8074, allocations: 1.304 MB / 0.9608 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.8076, allocations: 0.7004 MB / 0.9615 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.469e-05/0.8076, allocations: 7.062 kB / 0.9615 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.8077, allocations: 24.02 kB / 0.9615 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.8077, allocations: 0 / 0.9615 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01473/0.8224, allocations: 1.777 MB / 0.9632 GB, free: 36 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/0.8227, allocations: 230.8 kB / 0.9634 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/2.486, allocations: 5 kB / 0.9634 GB, free: 15.78 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat does not exist to compare? outputFormat=mat