Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.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.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",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.0007923/0.0007918, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.000847/0.000847, allocations: 172.7 kB / 15.95 MB, free: 208 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.489/1.489, allocations: 223.3 MB / 240 MB, free: 5.312 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.449/2.449, allocations: 390.4 MB / 0.6655 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.000357, allocations: 12 kB / 0.8149 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8039/0.8042, allocations: 142.3 MB / 0.9539 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.001083/0.8054, allocations: 0.5729 MB / 0.9544 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001401/0.8068, allocations: 1.156 MB / 0.9556 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.762e-05/0.8069, allocations: 1.188 kB / 0.9556 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.687e-05/0.8069, allocations: 7.938 kB / 0.9556 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.043e-05/0.807, allocations: 14.2 kB / 0.9556 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004928/0.8075, allocations: 132.7 kB / 0.9557 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001444/0.8076, allocations: 135.1 kB / 0.9558 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.8078, allocations: 29.91 kB / 0.9559 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.32e-05/0.8079, allocations: 55.98 kB / 0.9559 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.438e-05/0.808, allocations: 51.31 kB / 0.956 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.808, allocations: 6.062 kB / 0.956 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.13e-05/0.8081, allocations: 21.55 kB / 0.956 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.722e-05/0.8081, allocations: 24.56 kB / 0.956 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.102e-05/0.8082, allocations: 43.45 kB / 0.9561 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.8083, allocations: 111.6 kB / 0.9562 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.8083, allocations: 1.406 kB / 0.9562 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.793e-06/0.8083, allocations: 0 / 0.9562 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.8083, allocations: 0 / 0.9562 GB, free: 6.25 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005427/0.8089, allocations: 444.8 kB / 0.9566 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.8089, allocations: 9.5 kB / 0.9566 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.809, allocations: 36.66 kB / 0.9566 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.921e-05/0.809, allocations: 16.95 kB / 0.9567 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/0.8095, allocations: 259.5 kB / 0.9569 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.8095, allocations: 8.781 kB / 0.9569 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.935e-05/0.8096, allocations: 14.12 kB / 0.9569 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.8098, allocations: 86.39 kB / 0.957 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.8098, allocations: 4 kB / 0.957 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.8098, allocations: 9.234 kB / 0.957 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.8099, allocations: 2.188 kB / 0.957 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.81, allocations: 60.55 kB / 0.9571 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006334/0.8107, allocations: 395.9 kB / 0.9575 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.8108, allocations: 38.42 kB / 0.9575 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.245e-05/0.8109, allocations: 36.88 kB / 0.9575 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.8109, allocations: 1.438 kB / 0.9575 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.8112, allocations: 98.09 kB / 0.9576 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.8112, allocations: 1.312 kB / 0.9576 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004175/0.8116, allocations: 142.7 kB / 0.9578 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.8116, allocations: 53.88 kB / 0.9578 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.8117, allocations: 154.2 kB / 0.958 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.8118, allocations: 29.7 kB / 0.958 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.552e-05/0.8118, allocations: 110.2 kB / 0.9581 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.8119, allocations: 35.91 kB / 0.9581 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.399e-05/0.8119, allocations: 5.625 kB / 0.9581 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.454e-05/0.8119, allocations: 321.7 kB / 0.9584 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.8121, allocations: 58.58 kB / 0.9585 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.8123, allocations: 133.9 kB / 0.9586 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.8124, allocations: 97.23 kB / 0.9587 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.8124, allocations: 1.812 kB / 0.9587 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004377/0.8129, allocations: 250.1 kB / 0.959 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.689e-05/0.8129, allocations: 37.98 kB / 0.959 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.813, allocations: 3.5 kB / 0.959 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.813, allocations: 3.844 kB / 0.959 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.8131, allocations: 28.3 kB / 0.959 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.8131, allocations: 8.297 kB / 0.959 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002211/0.8133, allocations: 47.81 kB / 0.9591 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.8134, allocations: 17.47 kB / 0.9591 GB, free: 3.668 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,sampleTrigger.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 9.54e-05/0.8135, allocations: 131.9 kB / 0.9592 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.8135, allocations: 9.062 kB / 0.9592 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.432e-05/0.8135, allocations: 10.03 kB / 0.9592 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.8135, allocations: 5.453 kB / 0.9592 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.8136, allocations: 5.297 kB / 0.9593 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.8136, allocations: 11.92 kB / 0.9593 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000503/0.8141, allocations: 401.8 kB / 0.9596 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.8141, allocations: 0 / 0.9596 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.009e-05/0.8142, allocations: 24.05 kB / 0.9597 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.8142, allocations: 0 / 0.9597 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.8142, allocations: 1.219 kB / 0.9597 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.8142, allocations: 4.969 kB / 0.9597 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8142, allocations: 1.188 kB / 0.9597 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003751/0.8146, allocations: 252.1 kB / 0.9599 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.068e-05/0.8146, allocations: 88.23 kB / 0.96 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.8147, allocations: 5.375 kB / 0.96 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-05/0.8148, allocations: 9.812 kB / 0.96 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.599e-05/0.8148, allocations: 7.891 kB / 0.96 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.8148, allocations: 7.469 kB / 0.96 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.491e-05/0.8149, allocations: 115.2 kB / 0.9601 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8149, allocations: 0 / 0.9601 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002853/0.8152, allocations: 29.16 kB / 0.9602 GB, free: 2.711 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006085/0.8158, allocations: 0.7916 MB / 0.9609 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003502/0.8162, allocations: 199.2 kB / 0.9611 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.8162, allocations: 0 / 0.9611 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.8163, allocations: 47.41 kB / 0.9612 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.8166, allocations: 22.42 kB / 0.9612 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.8179, allocations: 0.8938 MB / 0.9621 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.8181, allocations: 0.7073 MB / 0.9628 GB, free: 420 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.858e-05/0.8181, allocations: 16.67 kB / 0.9628 GB, free: 412 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.441e-05/0.8182, allocations: 35.89 kB / 0.9628 GB, free: 384 kB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8182, allocations: 0 / 0.9628 GB, free: 384 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01398/0.8322, allocations: 2.802 MB / 0.9655 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.8324, allocations: 209.3 kB / 0.9657 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.726/2.559, allocations: 3.656 kB / 0.9658 GB, free: 14.84 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat does not exist to compare? outputFormat=mat