Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",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.006211/0.006211, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001172/0.001172, allocations: 194.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.529/2.529, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 64.22 kB / 0.9504 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2903, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.002034/0.2924, allocations: 0.6612 MB / 1.088 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001742/0.2942, allocations: 1.181 MB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.28e-05/0.2942, allocations: 3.938 kB / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.464e-05/0.2943, allocations: 0 / 1.089 GB, free: 140 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.914e-05/0.2944, allocations: 11.86 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006793/0.2951, allocations: 148.7 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002296/0.2953, allocations: 131.7 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.2954, allocations: 11.98 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.2956, allocations: 55.83 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.2957, allocations: 51.86 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.585e-05/0.2958, allocations: 12 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.647e-05/0.2959, allocations: 27.98 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.963e-05/0.2959, allocations: 15.92 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.259e-05/0.296, allocations: 47.88 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.2962, allocations: 123.9 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2962, allocations: 0 / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.834e-06/0.2962, allocations: 0 / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.2962, allocations: 0 / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0007296/0.297, allocations: 401 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.297, allocations: 12.03 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.286e-05/0.2971, allocations: 34.75 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.361e-05/0.2971, allocations: 8.938 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.2973, allocations: 184.2 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.2973, allocations: 4.375 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.207e-05/0.2974, allocations: 4.375 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.2976, allocations: 74.2 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.2976, allocations: 3.938 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.2976, allocations: 0 / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.2977, allocations: 4 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.2978, allocations: 39.97 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005351/0.2984, allocations: 324.8 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.2986, allocations: 78.42 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.2987, allocations: 32.84 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.689e-06/0.2987, allocations: 4 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000317/0.2991, allocations: 107.2 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.2991, allocations: 0 / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0005398/0.2996, allocations: 181.5 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.2997, allocations: 55.34 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.2998, allocations: 117.8 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.309e-05/0.2998, allocations: 33.7 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.116e-05/0.2999, allocations: 80.14 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.244e-05/0.2999, allocations: 31.78 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.856e-05/0.3, allocations: 37.7 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.3002, allocations: 326.8 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.3004, allocations: 47.97 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.3005, allocations: 66.55 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.3008, allocations: 124.2 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3008, allocations: 0 / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004367/0.3013, allocations: 192 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.979e-05/0.3013, allocations: 38.94 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.3013, allocations: 4 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3014, allocations: 3.938 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.3015, allocations: 8 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3015, allocations: 12 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.3017, allocations: 31.91 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.3017, allocations: 12 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,triggeredTrapezoid1.T,triggeredTrapezoid1.rate,triggeredTrapezoid1.endValue,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001397/0.3019, allocations: 117.9 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.542e-05/0.3019, allocations: 15.88 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.017e-05/0.302, allocations: 4.375 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.302, allocations: 4 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.302, allocations: 4 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.302, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005896/0.3026, allocations: 406.4 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3026, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.841e-05/0.3026, allocations: 11.98 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3027, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.3027, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.3027, allocations: 4 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3027, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004655/0.3032, allocations: 243.3 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.926e-05/0.3032, allocations: 85.09 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.3033, allocations: 3.984 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.3034, allocations: 8 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/0.3034, allocations: 11.92 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.3035, allocations: 7.938 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.463e-05/0.3035, allocations: 91.27 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3035, allocations: 4.469 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003125/0.3039, allocations: 31.89 kB / 1.094 GB, free: 11.44 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008325/0.3047, allocations: 0.7709 MB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004661/0.3052, allocations: 187.3 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3052, allocations: 0 / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.3053, allocations: 51.92 kB / 1.094 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.3057, allocations: 17.12 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.3082, allocations: 1.652 MB / 1.096 GB, free: 8.633 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.3085, allocations: 0.6846 MB / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.915e-05/0.3085, allocations: 8.656 kB / 1.097 GB, free: 7.91 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.171e-05/0.3086, allocations: 23.38 kB / 1.097 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of SimCode: time 3.21e-07/0.3086, allocations: 0 / 1.097 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.3299, allocations: 2.746 MB / 1.099 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.682/8.012, allocations: 4.062 kB / 1.1 GB, free: 5.273 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches