Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_11_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.001447/0.001447, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001421/0.001421, allocations: 193.8 kB / 16.25 MB, free: 6.629 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.319/1.319, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.589/2.589, allocations: 469.8 MB / 0.7421 GB, free: 7.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 70.77 kB / 0.9082 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2556, allocations: 159.2 MB / 1.064 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002061/0.2577, allocations: 0.9421 MB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2591, allocations: 1.182 MB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.44e-05/0.2592, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.035e-05/0.2592, allocations: 7.938 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.516e-05/0.2593, allocations: 11.91 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005017/0.2598, allocations: 140.2 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.26, allocations: 171.6 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.2602, allocations: 37.09 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.2603, allocations: 59.84 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.438e-05/0.2604, allocations: 63.73 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/0.2604, allocations: 19.94 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.793e-05/0.2605, allocations: 31.98 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.619e-05/0.2605, allocations: 27.91 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.144e-05/0.2606, allocations: 67.7 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.2608, allocations: 167.7 kB / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2608, allocations: 0 / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.074e-06/0.2608, allocations: 0 / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.2609, allocations: 0 / 1.066 GB, free: 11.56 MB / 0.8262 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.0007331/0.2616, allocations: 452.8 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.2616, allocations: 16.03 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.323e-05/0.2617, allocations: 38.73 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.218e-05/0.2617, allocations: 16.75 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/0.2623, allocations: 256.1 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.2623, allocations: 12.31 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.131e-05/0.2624, allocations: 12.38 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.2626, allocations: 93.95 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2626, allocations: 0 / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.2627, allocations: 4 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.2627, allocations: 4 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.2628, allocations: 49.36 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000703/0.2636, allocations: 388.4 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.2637, allocations: 34.56 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.081e-05/0.2638, allocations: 28.95 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.2638, allocations: 0 / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.264, allocations: 103.3 kB / 1.068 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 3.186e-06/0.264, allocations: 3.984 kB / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003937/0.2644, allocations: 129.5 kB / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.2645, allocations: 59.34 kB / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.2646, allocations: 149.5 kB / 1.068 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.2647, allocations: 33.7 kB / 1.068 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.305e-05/0.2648, allocations: 108.1 kB / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/0.2648, allocations: 27.61 kB / 1.068 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.858e-05/0.2649, allocations: 45.7 kB / 1.068 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.265, allocations: 322.8 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.2652, allocations: 51.95 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.2654, allocations: 132.9 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000362/0.2658, allocations: 200.6 kB / 1.069 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.2658, allocations: 8 kB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004783/0.2663, allocations: 235.2 kB / 1.069 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.07e-05/0.2663, allocations: 41.69 kB / 1.069 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2663, allocations: 4.375 kB / 1.069 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.2664, allocations: 4 kB / 1.069 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.2665, allocations: 27.86 kB / 1.069 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.2665, allocations: 4 kB / 1.069 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.2667, allocations: 47.86 kB / 1.069 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.2668, allocations: 16 kB / 1.069 GB, free: 8.133 MB / 0.8262 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 0.0001239/0.2669, allocations: 133.8 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.783e-05/0.2669, allocations: 7.906 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.401e-05/0.2669, allocations: 8.719 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.267, allocations: 11.88 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.267, allocations: 0 / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.185e-06/0.267, allocations: 0 / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005783/0.2676, allocations: 406.3 kB / 1.07 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.2676, allocations: 0 / 1.07 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.872e-05/0.2677, allocations: 19.92 kB / 1.07 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2677, allocations: 0 / 1.07 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.2677, allocations: 4 kB / 1.07 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2677, allocations: 3.938 kB / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2677, allocations: 0 / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.2681, allocations: 239.3 kB / 1.07 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.397e-05/0.2682, allocations: 88.95 kB / 1.07 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.2682, allocations: 0 / 1.07 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.902e-05/0.2683, allocations: 12.03 kB / 1.07 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.2683, allocations: 7.984 kB / 1.07 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.2683, allocations: 4 kB / 1.07 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.358e-05/0.2684, allocations: 107.3 kB / 1.07 GB, free: 7 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2684, allocations: 0 / 1.07 GB, free: 7 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002785/0.2687, allocations: 35.89 kB / 1.071 GB, free: 6.965 MB / 0.8262 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.0007481/0.2695, allocations: 0.7827 MB / 1.071 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003793/0.2699, allocations: 187.2 kB / 1.071 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.2699, allocations: 4 kB / 1.071 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.27, allocations: 36.72 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.2703, allocations: 27.98 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/0.2726, allocations: 1.973 MB / 1.073 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.2729, allocations: 0.7123 MB / 1.074 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.055e-05/0.273, allocations: 20.58 kB / 1.074 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.761e-05/0.2731, allocations: 31.44 kB / 1.074 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2731, allocations: 7.938 kB / 1.074 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.515/2.788, allocations: 2.977 MB / 1.077 GB, free: 132 kB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002884/2.789, allocations: 239.3 kB / 1.077 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/4.633, allocations: 0 / 1.077 GB, free: 15.86 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches