Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001568/0.001568, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001868/0.001868, allocations: 218.2 kB / 23.04 MB, free: 5.07 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.534/1.534, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.837/2.837, allocations: 476.8 MB / 0.7715 GB, free: 4.227 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",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.002016/0.002016, allocations: 65.58 kB / 1.118 GB, free: 40.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3185, allocations: 170 MB / 1.284 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003187/0.3217, allocations: 1.863 MB / 1.286 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.3227, allocations: 0.5766 MB / 1.287 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.58e-05/0.3228, allocations: 11.94 kB / 1.287 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.3229, allocations: 27.66 kB / 1.287 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.452e-05/0.323, allocations: 27.73 kB / 1.287 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.3232, allocations: 63.86 kB / 1.287 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002388/0.3235, allocations: 175.4 kB / 1.287 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.3236, allocations: 46.39 kB / 1.287 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.324e-05/0.3237, allocations: 51.8 kB / 1.287 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.335e-05/0.3238, allocations: 59.64 kB / 1.287 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.3238, allocations: 16 kB / 1.287 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.45e-05/0.3238, allocations: 12 kB / 1.287 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.553e-05/0.3238, allocations: 31.84 kB / 1.287 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.349e-05/0.3239, allocations: 67.59 kB / 1.287 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001835/0.3241, allocations: 126.9 kB / 1.287 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.3241, allocations: 4 kB / 1.287 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of FrontEnd: time 9.22e-07/0.3241, allocations: 0 / 1.287 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.3241, allocations: 0 / 1.287 GB, free: 8.555 MB / 0.9825 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.0006997/0.3248, allocations: 431.1 kB / 1.288 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.3249, allocations: 8.031 kB / 1.288 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.679e-05/0.3249, allocations: 8.125 kB / 1.288 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.337e-05/0.3249, allocations: 50.73 kB / 1.288 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.401e-05/0.325, allocations: 16.84 kB / 1.288 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.3253, allocations: 170.8 kB / 1.288 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.3253, allocations: 12.38 kB / 1.288 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.3253, allocations: 16.36 kB / 1.288 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003106/0.3256, allocations: 149.8 kB / 1.288 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.3257, allocations: 3.984 kB / 1.288 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.3257, allocations: 4 kB / 1.288 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3257, allocations: 0 / 1.288 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002423/0.3259, allocations: 79.88 kB / 1.288 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009841/0.3269, allocations: 0.7149 MB / 1.289 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.3271, allocations: 38.56 kB / 1.289 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.3272, allocations: 36.83 kB / 1.289 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.3272, allocations: 3.938 kB / 1.289 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002555/0.3275, allocations: 126.9 kB / 1.289 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.3275, allocations: 0 / 1.289 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0005243/0.328, allocations: 161.4 kB / 1.289 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.658e-05/0.3281, allocations: 140.7 kB / 1.289 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/0.3283, allocations: 199 kB / 1.289 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.3283, allocations: 33.7 kB / 1.29 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.129e-05/0.3284, allocations: 120 kB / 1.29 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.441e-05/0.3285, allocations: 43.83 kB / 1.29 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.992e-05/0.3285, allocations: 41.7 kB / 1.29 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3287, allocations: 330.8 kB / 1.29 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.3288, allocations: 43.91 kB / 1.29 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.329, allocations: 148.7 kB / 1.29 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/0.3294, allocations: 198.3 kB / 1.29 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.3294, allocations: 4 kB / 1.29 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004404/0.3298, allocations: 213.3 kB / 1.291 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3298, allocations: 8 kB / 1.291 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.3298, allocations: 4 kB / 1.291 GB, free: 4.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3299, allocations: 4 kB / 1.291 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.33, allocations: 31.92 kB / 1.291 GB, free: 4.652 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.33, allocations: 4 kB / 1.291 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.3302, allocations: 32.19 kB / 1.291 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.3302, allocations: 8 kB / 1.291 GB, free: 4.609 MB / 0.9825 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.0001281/0.3303, allocations: 145.6 kB / 1.291 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.977e-05/0.3303, allocations: 15.91 kB / 1.291 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.713e-05/0.3304, allocations: 21.39 kB / 1.291 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3304, allocations: 4 kB / 1.291 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3304, allocations: 0 / 1.291 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3304, allocations: 0 / 1.291 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008064/0.3312, allocations: 0.4893 MB / 1.291 GB, free: 3.875 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/0.3312, allocations: 4.109 kB / 1.291 GB, free: 3.871 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.3313, allocations: 19.97 kB / 1.291 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3313, allocations: 0 / 1.291 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.3313, allocations: 8 kB / 1.291 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3313, allocations: 3.938 kB / 1.291 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3313, allocations: 4 kB / 1.291 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005207/0.3319, allocations: 360.2 kB / 1.292 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.181e-05/0.3319, allocations: 15.84 kB / 1.292 GB, free: 3.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.3319, allocations: 12 kB / 1.292 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/0.3321, allocations: 19.95 kB / 1.292 GB, free: 3.414 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.3322, allocations: 11.98 kB / 1.292 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.3322, allocations: 4 kB / 1.292 GB, free: 3.398 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001174/0.3323, allocations: 135.2 kB / 1.292 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3323, allocations: 0 / 1.292 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003357/0.3326, allocations: 28 kB / 1.292 GB, free: 3.238 MB / 0.9825 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.0008834/0.3335, allocations: 0.9044 MB / 1.293 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003374/0.3338, allocations: 111.9 kB / 1.293 GB, free: 2.191 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3338, allocations: 7.938 kB / 1.293 GB, free: 2.184 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.334, allocations: 44.91 kB / 1.293 GB, free: 2.141 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005789/0.3346, allocations: 68.17 kB / 1.293 GB, free: 2.074 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.3374, allocations: 2.271 MB / 1.295 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.3377, allocations: 0.7242 MB / 1.296 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.826e-05/0.3378, allocations: 25.97 kB / 1.296 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.772e-05/0.3379, allocations: 47.42 kB / 1.296 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of SimCode: time 3.31e-07/0.3379, allocations: 0 / 1.296 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02556/0.3634, allocations: 4.285 MB / 1.3 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.83, allocations: 12.53 kB / 1.3 GB, free: 10.67 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 18.750855276011862]