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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.0009469/0.000947, allocations: 96.94 kB / 15.36 MB, free: 0.7344 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.0078/0.0078, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.276/1.276, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.496/2.496, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003507, allocations: 18.47 kB / 0.9029 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2562, allocations: 159.6 MB / 1.059 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.0008621/0.2571, allocations: 0.6011 MB / 1.059 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001317/0.2584, allocations: 1.194 MB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.426e-05/0.2585, allocations: 0 / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.237e-05/0.2585, allocations: 3.938 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.769e-05/0.2586, allocations: 15.86 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.259, allocations: 138.6 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001367/0.2591, allocations: 147.7 kB / 1.061 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.859e-05/0.2592, allocations: 41.03 kB / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.198e-05/0.2593, allocations: 47.84 kB / 1.061 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.966e-05/0.2594, allocations: 63.67 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.2594, allocations: 8 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.697e-05/0.2595, allocations: 15.98 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.28e-05/0.2595, allocations: 15.92 kB / 1.061 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.276e-05/0.2596, allocations: 89.41 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.2598, allocations: 151.7 kB / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.2598, allocations: 0 / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2598, allocations: 4 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.2598, allocations: 0 / 1.061 GB, free: 2.332 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.000476/0.2603, allocations: 425 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.2603, allocations: 15.97 kB / 1.062 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.137e-05/0.2603, allocations: 38.73 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.129e-05/0.2604, allocations: 16.75 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004823/0.2609, allocations: 264.2 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.2609, allocations: 16.36 kB / 1.062 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.2609, allocations: 16.31 kB / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.2611, allocations: 100.6 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.49e-06/0.2612, allocations: 4 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.2612, allocations: 0 / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.2612, allocations: 0 / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.2614, allocations: 55.95 kB / 1.062 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005913/0.262, allocations: 400.4 kB / 1.063 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.2621, allocations: 38.56 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.635e-05/0.2622, allocations: 28.84 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.2622, allocations: 4 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002066/0.2624, allocations: 103.4 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.2624, allocations: 4 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003824/0.2628, allocations: 141.8 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.067e-05/0.2629, allocations: 59.34 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.693e-05/0.263, allocations: 149.1 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.263, allocations: 37.64 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/0.2631, allocations: 108.1 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.2631, allocations: 27.62 kB / 1.063 GB, free: 108 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/0.2631, allocations: 25.7 kB / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.213e-05/0.2632, allocations: 322.8 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.2634, allocations: 55.95 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.2636, allocations: 137.1 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002957/0.2639, allocations: 208.6 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2639, allocations: 0 / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004483/0.2643, allocations: 255.2 kB / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/0.2644, allocations: 41.75 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.2644, allocations: 4 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.2644, allocations: 4 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.2645, allocations: 31.86 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/0.2645, allocations: 4 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/0.2648, allocations: 55.89 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.2648, allocations: 8 kB / 1.064 GB, free: 14.86 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 9.014e-05/0.2649, allocations: 125.8 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.969e-05/0.2649, allocations: 15.89 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.743e-05/0.2649, allocations: 8.719 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.265, allocations: 7.938 kB / 1.064 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.265, allocations: 3.938 kB / 1.064 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.265, allocations: 4 kB / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005053/0.2655, allocations: 410.3 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2655, allocations: 0 / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.586e-05/0.2656, allocations: 23.92 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2656, allocations: 3.938 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.2656, allocations: 4 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2656, allocations: 0 / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2656, allocations: 4 kB / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003783/0.266, allocations: 251.3 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.2661, allocations: 92.86 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.2661, allocations: 8 kB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.185e-05/0.2662, allocations: 12.03 kB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.109e-05/0.2662, allocations: 7.984 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.2662, allocations: 4 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.455e-05/0.2663, allocations: 103.3 kB / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2663, allocations: 0 / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002674/0.2666, allocations: 28 kB / 1.065 GB, free: 13.66 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.0006286/0.2672, allocations: 0.7952 MB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003444/0.2676, allocations: 195.2 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2676, allocations: 0 / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.2677, allocations: 39.97 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.268, allocations: 22.05 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.27, allocations: 2.004 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001979/0.2702, allocations: 0.7048 MB / 1.069 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.488e-05/0.2703, allocations: 16.64 kB / 1.069 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.001e-05/0.2703, allocations: 39.42 kB / 1.069 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2703, allocations: 3.938 kB / 1.069 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9992/1.27, allocations: 2.85 MB / 1.072 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/1.27, allocations: 218.2 kB / 1.072 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.528/2.798, allocations: 6.031 kB / 1.072 GB, free: 6.703 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