Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.006857/0.006857, allocations: 95.17 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.00161/0.00161, allocations: 206.2 kB / 16.68 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.721/2.721, allocations: 469.4 MB / 0.7421 GB, free: 7.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 63.91 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2673, allocations: 159.1 MB / 1.22 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001921/0.2692, allocations: 0.8908 MB / 1.221 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00142/0.2707, allocations: 1.17 MB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.274e-05/0.2707, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.151e-05/0.2708, allocations: 11.86 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.437e-05/0.2709, allocations: 27.8 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005162/0.2714, allocations: 150.6 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002178/0.2716, allocations: 171.6 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.2718, allocations: 41.03 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.2719, allocations: 63.83 kB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.272, allocations: 67.73 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.699e-05/0.2721, allocations: 16 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.759e-05/0.2721, allocations: 31.97 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.956e-05/0.2722, allocations: 23.86 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.962e-05/0.2723, allocations: 67.72 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.2725, allocations: 175.3 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.716e-06/0.2725, allocations: 0 / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2725, allocations: 0 / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.2725, allocations: 4 kB / 1.223 GB, free: 11.72 MB / 0.9825 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.0006503/0.2732, allocations: 460.6 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2732, allocations: 8.031 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.2733, allocations: 38.75 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.537e-05/0.2733, allocations: 20.83 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005433/0.2739, allocations: 253.8 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.2739, allocations: 4.375 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.408e-05/0.2739, allocations: 16.38 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.2742, allocations: 93.94 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.2742, allocations: 0 / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.2742, allocations: 0 / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.2742, allocations: 4 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.2744, allocations: 47.95 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000684/0.2751, allocations: 396.5 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.2752, allocations: 38.55 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.51e-05/0.2753, allocations: 20.84 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.2754, allocations: 4 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002603/0.2756, allocations: 103.4 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.2756, allocations: 0 / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0004311/0.2761, allocations: 133.5 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.2761, allocations: 63.34 kB / 1.224 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.2762, allocations: 136.1 kB / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.2763, allocations: 29.7 kB / 1.224 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.934e-05/0.2764, allocations: 116.5 kB / 1.225 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.2764, allocations: 35.72 kB / 1.225 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.086e-05/0.2765, allocations: 45.69 kB / 1.225 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.245e-05/0.2766, allocations: 326.8 kB / 1.225 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001607/0.2767, allocations: 47.91 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/0.2769, allocations: 136.8 kB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003235/0.2773, allocations: 208.6 kB / 1.225 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2773, allocations: 3.938 kB / 1.225 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005041/0.2778, allocations: 247 kB / 1.226 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.2778, allocations: 33.7 kB / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2779, allocations: 4 kB / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.2779, allocations: 4 kB / 1.226 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.278, allocations: 31.84 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.278, allocations: 4.375 kB / 1.226 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.2783, allocations: 43.92 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.2783, allocations: 11.98 kB / 1.226 GB, free: 8.277 MB / 0.9825 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 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.918e-05/0.2784, allocations: 133.1 kB / 1.226 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.984e-05/0.2784, allocations: 11.95 kB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.73e-05/0.2785, allocations: 12.72 kB / 1.226 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.2785, allocations: 7.938 kB / 1.226 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.2785, allocations: 7.984 kB / 1.226 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2785, allocations: 0 / 1.226 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005367/0.279, allocations: 390.5 kB / 1.226 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2791, allocations: 0 / 1.226 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.546e-05/0.2792, allocations: 15.92 kB / 1.226 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2792, allocations: 0 / 1.226 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.2792, allocations: 4 kB / 1.226 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.2792, allocations: 3.938 kB / 1.226 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2792, allocations: 7.984 kB / 1.226 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000407/0.2796, allocations: 245.1 kB / 1.226 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.82e-05/0.2797, allocations: 89 kB / 1.227 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.2797, allocations: 4.031 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.494e-05/0.2798, allocations: 4.188 kB / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.2798, allocations: 15.98 kB / 1.227 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.2799, allocations: 7.938 kB / 1.227 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.46e-05/0.2799, allocations: 107.2 kB / 1.227 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2799, allocations: 0 / 1.227 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003065/0.2802, allocations: 35.89 kB / 1.227 GB, free: 7.098 MB / 0.9825 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 (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.0006937/0.2809, allocations: 0.7865 MB / 1.227 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003762/0.2813, allocations: 180.1 kB / 1.228 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2813, allocations: 3.938 kB / 1.228 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.2815, allocations: 36.05 kB / 1.228 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.2818, allocations: 21.98 kB / 1.228 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.284, allocations: 1.967 MB / 1.23 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.2842, allocations: 0.7084 MB / 1.23 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.249e-05/0.2843, allocations: 20.62 kB / 1.23 GB, free: 3.156 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.636e-05/0.2843, allocations: 35.42 kB / 1.23 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.2843, allocations: 4 kB / 1.23 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02079/0.3051, allocations: 3.17 MB / 1.233 GB, free: 104 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.34/7.645, allocations: 6.219 kB / 1.233 GB, free: 100 kB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches