Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 109 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 185.9 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 225.6 MB / 249.3 MB, free: 3.152 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.344/2.344, allocations: 443.5 MB / 0.7304 GB, free: 14.02 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 75.88 kB / 1.059 GB, free: 0.9648 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2517, allocations: 160.7 MB / 1.216 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001863/0.2535, allocations: 0.7344 MB / 1.216 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001549/0.2551, allocations: 1.199 MB / 1.217 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.63e-05/0.2551, allocations: 0 / 1.217 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.606e-05/0.2552, allocations: 3.938 kB / 1.217 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.995e-05/0.2552, allocations: 11.81 kB / 1.217 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005056/0.2557, allocations: 151.5 kB / 1.218 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001732/0.2559, allocations: 115.8 kB / 1.218 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.526e-05/0.256, allocations: 15.97 kB / 1.218 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.011e-05/0.2561, allocations: 47.84 kB / 1.218 GB, free: 13.65 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.336e-05/0.2562, allocations: 43.88 kB / 1.218 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.2562, allocations: 12 kB / 1.218 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.362e-05/0.2563, allocations: 23.98 kB / 1.218 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.335e-05/0.2563, allocations: 15.92 kB / 1.218 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.914e-05/0.2563, allocations: 43.89 kB / 1.218 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.2565, allocations: 111.9 kB / 1.218 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2565, allocations: 0 / 1.218 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2565, allocations: 0 / 1.218 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.2565, allocations: 0 / 1.218 GB, free: 13.4 MB / 0.9669 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.0005683/0.2571, allocations: 408.9 kB / 1.218 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.2571, allocations: 12.03 kB / 1.218 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.53e-05/0.2572, allocations: 34.75 kB / 1.218 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.2572, allocations: 12.88 kB / 1.218 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.2573, allocations: 168.3 kB / 1.219 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.2573, allocations: 8.375 kB / 1.219 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.2574, allocations: 4.375 kB / 1.219 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.2575, allocations: 70.2 kB / 1.219 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.2576, allocations: 3.938 kB / 1.219 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.2576, allocations: 4 kB / 1.219 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2576, allocations: 0 / 1.219 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.2577, allocations: 39.95 kB / 1.219 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004465/0.2582, allocations: 336.6 kB / 1.219 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001511/0.2583, allocations: 54.48 kB / 1.219 GB, free: 12.1 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.478e-05/0.2584, allocations: 28.92 kB / 1.219 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.2584, allocations: 0 / 1.219 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.2587, allocations: 91.3 kB / 1.219 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.2587, allocations: 0 / 1.219 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.000418/0.2591, allocations: 133.6 kB / 1.219 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.2591, allocations: 51.41 kB / 1.219 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.077e-05/0.2592, allocations: 117.8 kB / 1.219 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.2593, allocations: 33.7 kB / 1.22 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/0.2593, allocations: 100.1 kB / 1.22 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.2593, allocations: 15.91 kB / 1.22 GB, free: 11.49 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-05/0.2594, allocations: 33.7 kB / 1.22 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2595, allocations: 322.8 kB / 1.22 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.2597, allocations: 47.97 kB / 1.22 GB, free: 11.08 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.2598, allocations: 83.33 kB / 1.22 GB, free: 10.98 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.2601, allocations: 133 kB / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2601, allocations: 0 / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004229/0.2605, allocations: 203.2 kB / 1.22 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.2606, allocations: 33.7 kB / 1.22 GB, free: 10.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2606, allocations: 4 kB / 1.22 GB, free: 10.58 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.2606, allocations: 0 / 1.22 GB, free: 10.58 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.062e-05/0.2607, allocations: 11.98 kB / 1.22 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.2607, allocations: 0 / 1.22 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.2609, allocations: 35.95 kB / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.2609, allocations: 16 kB / 1.221 GB, free: 10.52 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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 9.768e-05/0.261, allocations: 121.7 kB / 1.221 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.261, allocations: 11.94 kB / 1.221 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002841/0.2613, allocations: 106 kB / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.2613, allocations: 4 kB / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2613, allocations: 0 / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.2613, allocations: 0 / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00044/0.2618, allocations: 370.8 kB / 1.221 GB, free: 9.848 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2618, allocations: 3.938 kB / 1.221 GB, free: 9.844 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.815e-05/0.2618, allocations: 7.984 kB / 1.221 GB, free: 9.836 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2618, allocations: 4 kB / 1.221 GB, free: 9.832 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.2618, allocations: 0 / 1.221 GB, free: 9.832 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2618, allocations: 0 / 1.221 GB, free: 9.832 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.2618, allocations: 3.938 kB / 1.221 GB, free: 9.828 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/0.2621, allocations: 215.4 kB / 1.221 GB, free: 9.602 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.2622, allocations: 85.52 kB / 1.221 GB, free: 9.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.2622, allocations: 8 kB / 1.221 GB, free: 9.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.609e-05/0.2623, allocations: 8.094 kB / 1.221 GB, free: 9.484 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.2623, allocations: 11.91 kB / 1.221 GB, free: 9.473 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.2623, allocations: 4 kB / 1.221 GB, free: 9.469 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.4e-05/0.2624, allocations: 99.2 kB / 1.222 GB, free: 9.371 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6e-08/0.2624, allocations: 0 / 1.222 GB, free: 9.371 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002441/0.2626, allocations: 24 kB / 1.222 GB, free: 9.348 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * 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.0006469/0.2633, allocations: 0.7358 MB / 1.222 GB, free: 8.586 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003546/0.2636, allocations: 155.3 kB / 1.222 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2636, allocations: 0 / 1.222 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.2637, allocations: 27.98 kB / 1.222 GB, free: 8.395 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.264, allocations: 15.92 kB / 1.222 GB, free: 8.379 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.266, allocations: 1.65 MB / 1.224 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.2663, allocations: 0.6924 MB / 1.225 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.259e-05/0.2663, allocations: 4 kB / 1.225 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.731e-05/0.2664, allocations: 23.42 kB / 1.225 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of SimCode: time 5.01e-07/0.2664, allocations: 0 / 1.225 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.2896, allocations: 2.43 MB / 1.227 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.055/7.344, allocations: 5.375 kB / 1.227 GB, free: 3.547 MB / 0.9669 GB " [Timeout remaining time 293] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable triggeredMax.trigger in file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.csv. Warning: Get data of variable triggeredMax.trigger from file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.524800058999972]