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.001704/0.001704, 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.001988/0.001988, allocations: 216 kB / 23.04 MB, free: 5.074 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.656/1.656, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.7959 GB, free: 33.52 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_12_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.001973/0.001973, allocations: 69.38 kB / 1.155 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3643, allocations: 176.1 MB / 1.327 GB, free: 1.949 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003187/0.3675, allocations: 1.858 MB / 1.328 GB, free: 88 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001129/0.3686, allocations: 0.5766 MB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.3688, allocations: 11.88 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.3689, allocations: 23.73 kB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.871e-05/0.369, allocations: 35.72 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002227/0.3692, allocations: 71.84 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.3694, allocations: 167.5 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.3696, allocations: 42 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.104e-05/0.3697, allocations: 51.73 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.3698, allocations: 59.69 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.388e-05/0.3698, allocations: 12 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 2.152e-05/0.3698, allocations: 12 kB / 1.33 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.599e-05/0.3699, allocations: 31.8 kB / 1.33 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.008e-05/0.37, allocations: 71.59 kB / 1.33 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002116/0.3702, allocations: 131.3 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3702, allocations: 4 kB / 1.33 GB, free: 14.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3702, allocations: 3.938 kB / 1.33 GB, free: 14.78 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.3702, allocations: 0 / 1.33 GB, free: 14.78 MB / 1.029 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.0007459/0.3709, allocations: 431.1 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.371, allocations: 8.031 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.962e-05/0.371, allocations: 8.188 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.483e-05/0.371, allocations: 42.73 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.681e-05/0.3711, allocations: 20.84 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000336/0.3714, allocations: 174.7 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.3714, allocations: 8.375 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.069e-05/0.3715, allocations: 12.38 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.3718, allocations: 152.7 kB / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3718, allocations: 0 / 1.331 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.3718, allocations: 12 kB / 1.331 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3718, allocations: 7.922 kB / 1.331 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002348/0.372, allocations: 69.27 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.3731, allocations: 0.7112 MB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001549/0.3732, allocations: 50.55 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.3733, allocations: 32.83 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.3733, allocations: 3.938 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002734/0.3736, allocations: 130.7 kB / 1.332 GB, free: 12.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.3736, allocations: 0 / 1.332 GB, free: 12.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0005941/0.3742, allocations: 157.4 kB / 1.332 GB, free: 12.59 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.071e-05/0.3743, allocations: 136.5 kB / 1.332 GB, free: 12.43 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.3745, allocations: 203.2 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.3745, allocations: 33.7 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.2e-05/0.3746, allocations: 128.2 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.064e-05/0.3747, allocations: 35.73 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.717e-05/0.3747, allocations: 45.64 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3749, allocations: 326.8 kB / 1.333 GB, free: 11.63 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.375, allocations: 35.97 kB / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.3752, allocations: 154.5 kB / 1.333 GB, free: 11.39 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.3755, allocations: 198.4 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3755, allocations: 4 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004142/0.376, allocations: 205.5 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.376, allocations: 8 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.376, allocations: 7.984 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.376, allocations: 4 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.3761, allocations: 35.92 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.3761, allocations: 7.938 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.3763, allocations: 23.88 kB / 1.333 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.3763, allocations: 15.98 kB / 1.333 GB, free: 10.84 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.0001235/0.3764, allocations: 145.7 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.139e-05/0.3765, allocations: 15.91 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.43e-05/0.3765, allocations: 17.41 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3765, allocations: 4 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.3765, allocations: 3.984 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.3765, allocations: 0 / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008111/0.3773, allocations: 0.4888 MB / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3773, allocations: 0 / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.3775, allocations: 19.98 kB / 1.334 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3775, allocations: 288 / 1.334 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.3775, allocations: 8.297 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.3775, allocations: 7.938 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3775, allocations: 4 kB / 1.334 GB, free: 10.06 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005319/0.378, allocations: 368.2 kB / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.209e-05/0.3781, allocations: 19.84 kB / 1.334 GB, free: 9.66 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.3781, allocations: 4 kB / 1.334 GB, free: 9.656 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.3783, allocations: 15.97 kB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.155e-05/0.3783, allocations: 23.91 kB / 1.334 GB, free: 9.617 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.3783, allocations: 4 kB / 1.334 GB, free: 9.613 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001303/0.3785, allocations: 152.2 kB / 1.334 GB, free: 9.465 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3785, allocations: 0 / 1.334 GB, free: 9.465 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003332/0.3788, allocations: 28 kB / 1.335 GB, free: 9.438 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.0008447/0.3796, allocations: 0.8967 MB / 1.335 GB, free: 8.508 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003748/0.38, allocations: 107.9 kB / 1.335 GB, free: 8.402 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.38, allocations: 4 kB / 1.335 GB, free: 8.398 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.3802, allocations: 43.91 kB / 1.336 GB, free: 8.355 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.3807, allocations: 73.52 kB / 1.336 GB, free: 8.289 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.3838, allocations: 2.262 MB / 1.338 GB, free: 5.84 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.3842, allocations: 0.7242 MB / 1.339 GB, free: 5.09 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001173/0.3844, allocations: 17.86 kB / 1.339 GB, free: 5.074 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.3845, allocations: 51.41 kB / 1.339 GB, free: 5.023 MB / 1.029 GB Notification: Performance of SimCode: time 1.593e-06/0.3845, allocations: 0 / 1.339 GB, free: 5.023 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.4108, allocations: 4.276 MB / 1.343 GB, free: 0.9219 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.9, allocations: 12.55 kB / 1.343 GB, free: 0.9102 MB / 1.029 GB " [Timeout remaining time 288] (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: 19.03355500899488]