Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 107.2 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001994/0.001994, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.538/1.538, allocations: 230.6 MB / 252.8 MB, free: 8.938 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.25/3.25, allocations: 0.49 GB / 0.7916 GB, free: 33.66 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 75 kB / 1.149 GB, free: 26.25 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3499, allocations: 176.1 MB / 1.321 GB, free: 3.309 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003647/0.3536, allocations: 1.84 MB / 1.323 GB, free: 1.457 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.3551, allocations: 0.5766 MB / 1.323 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002078/0.3553, allocations: 3.938 kB / 1.323 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002112/0.3555, allocations: 27.73 kB / 1.323 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.3557, allocations: 23.72 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003389/0.356, allocations: 71.86 kB / 1.323 GB, free: 0.75 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000385/0.3564, allocations: 183.4 kB / 1.323 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.3566, allocations: 29.95 kB / 1.323 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.3567, allocations: 55.78 kB / 1.324 GB, free: 496 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.3568, allocations: 51.7 kB / 1.324 GB, free: 444 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.743e-05/0.3569, allocations: 15.98 kB / 1.324 GB, free: 428 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 2.096e-05/0.3569, allocations: 8 kB / 1.324 GB, free: 420 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.62e-05/0.3569, allocations: 31.84 kB / 1.324 GB, free: 388 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.601e-05/0.357, allocations: 67.55 kB / 1.324 GB, free: 320 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002464/0.3573, allocations: 131.3 kB / 1.324 GB, free: 188 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3573, allocations: 0 / 1.324 GB, free: 188 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3573, allocations: 7.938 kB / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of Transformations before backend: time 1.231e-05/0.3573, allocations: 0 / 1.324 GB, free: 180 kB / 1.014 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.0009501/0.3582, allocations: 482.5 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.3583, allocations: 15.92 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.218e-05/0.3583, allocations: 46.73 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.842e-05/0.3584, allocations: 20.84 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.3588, allocations: 244 kB / 1.325 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.3588, allocations: 8.375 kB / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.3589, allocations: 12.38 kB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000332/0.3592, allocations: 152 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3592, allocations: 4 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.3592, allocations: 4 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.3592, allocations: 4 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.3595, allocations: 73.42 kB / 1.325 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.3606, allocations: 0.7356 MB / 1.326 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001795/0.3608, allocations: 54.48 kB / 1.326 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.3609, allocations: 28.84 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.361, allocations: 8 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000303/0.3613, allocations: 134.6 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.582e-06/0.3613, allocations: 0 / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0006302/0.3619, allocations: 169.6 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.362, allocations: 132.5 kB / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.3622, allocations: 199 kB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.3623, allocations: 29.7 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.3624, allocations: 131.9 kB / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.289e-05/0.3624, allocations: 39.89 kB / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.001e-05/0.3625, allocations: 41.7 kB / 1.327 GB, free: 13.17 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3626, allocations: 334.9 kB / 1.327 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.3628, allocations: 39.97 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.363, allocations: 142.4 kB / 1.327 GB, free: 12.61 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.3634, allocations: 210.2 kB / 1.327 GB, free: 12.35 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3634, allocations: 0 / 1.327 GB, free: 12.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004574/0.3638, allocations: 213.1 kB / 1.327 GB, free: 12.13 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3638, allocations: 4 kB / 1.327 GB, free: 12.13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3639, allocations: 4 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.3639, allocations: 8 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.364, allocations: 36.41 kB / 1.327 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.364, allocations: 8 kB / 1.327 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.3642, allocations: 27.88 kB / 1.327 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.3642, allocations: 8 kB / 1.327 GB, free: 12.04 MB / 1.029 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.0001481/0.3644, allocations: 139.4 kB / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.3644, allocations: 19.91 kB / 1.328 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.775e-05/0.3644, allocations: 25.33 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3645, allocations: 4 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3645, allocations: 4 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3645, allocations: 0 / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008645/0.3653, allocations: 0.5093 MB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3653, allocations: 4 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.3655, allocations: 19.92 kB / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3655, allocations: 288 / 1.328 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.3655, allocations: 8 kB / 1.328 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.3655, allocations: 7.922 kB / 1.328 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3655, allocations: 0 / 1.328 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005956/0.3661, allocations: 379.6 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.265e-05/0.3662, allocations: 89.02 kB / 1.329 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.3662, allocations: 4 kB / 1.329 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.3664, allocations: 19.97 kB / 1.329 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.614e-05/0.3664, allocations: 11.98 kB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.3664, allocations: 7.984 kB / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001369/0.3666, allocations: 148.2 kB / 1.329 GB, free: 10.55 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3666, allocations: 0 / 1.329 GB, free: 10.55 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000353/0.3669, allocations: 32 kB / 1.329 GB, free: 10.52 MB / 1.029 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.0009447/0.3679, allocations: 0.8966 MB / 1.33 GB, free: 9.586 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003704/0.3682, allocations: 112.7 kB / 1.33 GB, free: 9.477 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.3682, allocations: 0 / 1.33 GB, free: 9.477 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001605/0.3684, allocations: 51.97 kB / 1.33 GB, free: 9.426 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006098/0.369, allocations: 66.11 kB / 1.33 GB, free: 9.363 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/0.372, allocations: 2.257 MB / 1.332 GB, free: 6.914 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.3724, allocations: 0.7281 MB / 1.333 GB, free: 6.16 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.331e-05/0.3725, allocations: 13.92 kB / 1.333 GB, free: 6.148 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.3726, allocations: 55.42 kB / 1.333 GB, free: 6.094 MB / 1.029 GB Notification: Performance of SimCode: time 1.152e-06/0.3726, allocations: 4 kB / 1.333 GB, free: 6.09 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03027/0.4028, allocations: 4.032 MB / 1.337 GB, free: 2.172 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.221/8.623, allocations: 14.66 kB / 1.337 GB, free: 2.16 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.433430379955098]