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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001441/0.001441, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001709/0.001709, allocations: 189.5 kB / 16.25 MB, free: 6.637 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.271/1.271, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.448/2.448, allocations: 461.9 MB / 0.7343 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 76.98 kB / 0.8987 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2413, allocations: 157.4 MB / 1.052 GB, free: 8.637 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001907/0.2433, allocations: 0.94 MB / 1.053 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001255/0.2445, allocations: 1.19 MB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.555e-05/0.2446, allocations: 4 kB / 1.055 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.621e-05/0.2446, allocations: 3.938 kB / 1.055 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.006e-05/0.2447, allocations: 11.91 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.2452, allocations: 130.9 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.2454, allocations: 179.6 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.2455, allocations: 37.09 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.323e-05/0.2456, allocations: 71.77 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.82e-05/0.2456, allocations: 59.73 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.665e-05/0.2457, allocations: 16 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.355e-05/0.2457, allocations: 24 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.737e-05/0.2458, allocations: 35.89 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.635e-05/0.2459, allocations: 63.72 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.246, allocations: 167.7 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.246, allocations: 0 / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2461, allocations: 0 / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.349e-06/0.2461, allocations: 0 / 1.055 GB, free: 5.707 MB / 0.8106 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.0005673/0.2466, allocations: 448.8 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.2467, allocations: 16.56 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.262e-05/0.2467, allocations: 42.73 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.441e-05/0.2468, allocations: 12.84 kB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004783/0.2472, allocations: 261.6 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.2473, allocations: 8.312 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.2473, allocations: 16.38 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.2475, allocations: 89.95 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.2475, allocations: 4 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.2475, allocations: 4 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.2476, allocations: 0 / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.2477, allocations: 47.95 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006029/0.2483, allocations: 396.4 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.2484, allocations: 34.56 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.04e-05/0.2485, allocations: 28.95 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.2486, allocations: 0 / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.2488, allocations: 99.3 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.2488, allocations: 4 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003705/0.2492, allocations: 129.5 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/0.2492, allocations: 59.34 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.2493, allocations: 143.9 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.2493, allocations: 29.7 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.307e-05/0.2494, allocations: 116 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.566e-05/0.2494, allocations: 31.59 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.122e-05/0.2495, allocations: 45.7 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.359e-05/0.2496, allocations: 322.8 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.2497, allocations: 51.95 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.2499, allocations: 127.1 kB / 1.058 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.2502, allocations: 204.6 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.2502, allocations: 384 / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004329/0.2507, allocations: 243.2 kB / 1.058 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.2507, allocations: 33.7 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2507, allocations: 4 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.2507, allocations: 7.938 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2508, allocations: 31.86 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.2509, allocations: 4 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.2511, allocations: 43.8 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.2511, allocations: 8.062 kB / 1.058 GB, free: 2.285 MB / 0.8106 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.315e-05/0.2512, allocations: 139.3 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/0.2512, allocations: 7.906 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.562e-05/0.2513, allocations: 12.72 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2513, allocations: 11.88 kB / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.2513, allocations: 0 / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2513, allocations: 0 / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004754/0.2518, allocations: 402.3 kB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2518, allocations: 0 / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.072e-05/0.2519, allocations: 19.92 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.2519, allocations: 3.984 kB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.2519, allocations: 3.984 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2519, allocations: 0 / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.2519, allocations: 4 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003529/0.2523, allocations: 243.3 kB / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.2523, allocations: 88.95 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.2523, allocations: 0 / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.664e-05/0.2524, allocations: 8.031 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.2525, allocations: 11.98 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.2525, allocations: 4 kB / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.769e-05/0.2525, allocations: 107.3 kB / 1.059 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2525, allocations: 0 / 1.059 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002796/0.2528, allocations: 35.89 kB / 1.059 GB, free: 1.102 MB / 0.8106 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.0006123/0.2534, allocations: 0.7915 MB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003363/0.2538, allocations: 183.2 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2538, allocations: 4 kB / 1.06 GB, free: 96 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.2539, allocations: 40.66 kB / 1.06 GB, free: 56 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.2542, allocations: 26.05 kB / 1.06 GB, free: 32 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.2562, allocations: 1.965 MB / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.2564, allocations: 0.7122 MB / 1.063 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.702e-05/0.2565, allocations: 16.64 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.192e-05/0.2565, allocations: 39.42 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.2565, allocations: 3.938 kB / 1.063 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4391/0.6956, allocations: 2.993 MB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000229/0.6959, allocations: 224.7 kB / 1.066 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.212/2.907, allocations: 7.938 kB / 1.066 GB, free: 10.02 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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