Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_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.007732/0.007732, allocations: 99.64 kB / 15.73 MB, free: 6.035 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.001832/0.001832, allocations: 189.6 kB / 16.67 MB, free: 5.969 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.788/2.788, allocations: 461.9 MB / 0.7348 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 63.84 kB / 1.054 GB, free: 7.738 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2891, allocations: 157.4 MB / 1.207 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003284/0.2924, allocations: 1.826 MB / 1.209 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001183/0.2936, allocations: 0.5497 MB / 1.21 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.2938, allocations: 7.938 kB / 1.21 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.294, allocations: 23.72 kB / 1.21 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.2941, allocations: 23.75 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002844/0.2944, allocations: 63.91 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.2947, allocations: 171.4 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.2949, allocations: 53.66 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.295, allocations: 55.77 kB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.2951, allocations: 63.58 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.2952, allocations: 12 kB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.278e-05/0.2952, allocations: 12 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.507e-05/0.2952, allocations: 31.84 kB / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.435e-05/0.2953, allocations: 63.61 kB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.2955, allocations: 131.7 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2955, allocations: 8 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2955, allocations: 0 / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.2955, allocations: 0 / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007093/0.2963, allocations: 470.7 kB / 1.211 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2963, allocations: 12.62 kB / 1.211 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.595e-05/0.2964, allocations: 42.73 kB / 1.211 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.798e-05/0.2964, allocations: 16.75 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.2967, allocations: 231.9 kB / 1.211 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.2968, allocations: 8.375 kB / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.2968, allocations: 16.31 kB / 1.211 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002885/0.2971, allocations: 158 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.2971, allocations: 0 / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.2971, allocations: 4 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.2971, allocations: 4 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.2974, allocations: 71.83 kB / 1.211 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009538/0.2983, allocations: 0.743 MB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.2985, allocations: 42.55 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.2986, allocations: 36.84 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.2987, allocations: 0 / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.2989, allocations: 130.6 kB / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.2989, allocations: 0 / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0005017/0.2994, allocations: 165.7 kB / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.289e-05/0.2995, allocations: 132.5 kB / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.2997, allocations: 204.2 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.2997, allocations: 25.7 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.643e-05/0.2998, allocations: 132 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.376e-05/0.2999, allocations: 39.47 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.955e-05/0.2999, allocations: 41.77 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3001, allocations: 330.8 kB / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.3002, allocations: 40.03 kB / 1.213 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.3004, allocations: 150.3 kB / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/0.3007, allocations: 206.3 kB / 1.214 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3007, allocations: 0 / 1.214 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004182/0.3011, allocations: 201.1 kB / 1.214 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3012, allocations: 8 kB / 1.214 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3012, allocations: 4 kB / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.3012, allocations: 4.5 kB / 1.214 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.3014, allocations: 43.91 kB / 1.214 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.3014, allocations: 8 kB / 1.214 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.3015, allocations: 23.83 kB / 1.214 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.3016, allocations: 12 kB / 1.214 GB, free: 3.055 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.0001075/0.3017, allocations: 137.6 kB / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.212e-05/0.3017, allocations: 19.81 kB / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.3018, allocations: 21.39 kB / 1.214 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.3018, allocations: 0 / 1.214 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.3018, allocations: 8 kB / 1.214 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3018, allocations: 240 / 1.214 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007624/0.3026, allocations: 0.517 MB / 1.215 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.3026, allocations: 4 kB / 1.215 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.3027, allocations: 15.98 kB / 1.215 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3027, allocations: 4 kB / 1.215 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.3027, allocations: 4 kB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.3027, allocations: 11.92 kB / 1.215 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3027, allocations: 0 / 1.215 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005074/0.3033, allocations: 356.1 kB / 1.215 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.739e-05/0.3033, allocations: 92.92 kB / 1.215 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.3034, allocations: 7.938 kB / 1.215 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.3035, allocations: 15.97 kB / 1.215 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.111e-05/0.3036, allocations: 11.98 kB / 1.215 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.3036, allocations: 12.05 kB / 1.215 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001109/0.3037, allocations: 139.4 kB / 1.215 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3037, allocations: 7.938 kB / 1.215 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000363/0.3041, allocations: 28 kB / 1.215 GB, free: 1.547 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0007702/0.3049, allocations: 0.8994 MB / 1.216 GB, free: 0.6172 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003219/0.3052, allocations: 112.5 kB / 1.216 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3052, allocations: 256 / 1.216 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.3054, allocations: 59.84 kB / 1.216 GB, free: 460 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005704/0.306, allocations: 72.44 kB / 1.216 GB, free: 392 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.3085, allocations: 2.267 MB / 1.219 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.3087, allocations: 0.7203 MB / 1.219 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.865e-05/0.3088, allocations: 17.97 kB / 1.219 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.206e-05/0.3089, allocations: 51.42 kB / 1.219 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.3089, allocations: 0 / 1.219 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.3303, allocations: 4.121 MB / 1.223 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.723/8.053, allocations: 8.953 kB / 1.223 GB, free: 9.102 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,cons.y,booleanPulse.y,intWitRes1.y_start,intWitRes1.y_reset,intWitRes1.y,intWitRes2.y_start,intWitRes2.y,intWitRes2.y_reset_in,intNoReset.y_start,intNoReset.y,intDef.y_start,intDef.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,cons.k,cons.y,der(intDef.y),der(intNoReset.y),der(intWitRes1.y),der(intWitRes2.y),intDef.initType,intDef.k,intDef.reset,intDef.u,intDef.y,intDef.y_reset,intDef.y_start,intNoReset.initType,intNoReset.k,intNoReset.reset,intNoReset.u,intNoReset.y,intNoReset.y_reset,intNoReset.y_start,intWitRes1.initType,intWitRes1.k,intWitRes1.reset,intWitRes1.trigger,intWitRes1.u,intWitRes1.y,intWitRes1.y_reset,intWitRes1.y_start,intWitRes2.initType,intWitRes2.k,intWitRes2.reset,intWitRes2.trigger,intWitRes2.u,intWitRes2.y,intWitRes2.y_reset,intWitRes2.y_reset_in,intWitRes2.y_start,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sampleTrigger.period,sampleTrigger.startTime,sampleTrigger.y,time