Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_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.001076/0.001076, allocations: 80.55 kB / 19.96 MB, free: 4.602 MB / 18.57 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.0009853/0.0009853, allocations: 177.2 kB / 23.24 MB, free: 1.324 MB / 18.57 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 0.9203/0.9203, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.763/1.763, allocations: 389.6 MB / 0.6343 GB, free: 12.59 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.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_13_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_13_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 1.001 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.205e-05/1.364e-05, allocations: 6.281 kB / 1.001 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002187/0.0022, allocations: 1.787 MB / 1.002 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007627/0.002963, allocations: 0.5415 MB / 1.003 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.805e-05/0.003051, allocations: 11.88 kB / 1.003 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.003168, allocations: 27.67 kB / 1.003 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.535e-05/0.003224, allocations: 31.73 kB / 1.003 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.003412, allocations: 71.78 kB / 1.003 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000172/0.003584, allocations: 175.4 kB / 1.003 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.003704, allocations: 37.77 kB / 1.003 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.632e-05/0.0038, allocations: 79.8 kB / 1.003 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.89e-05/0.003859, allocations: 43.81 kB / 1.003 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.003882, allocations: 12 kB / 1.003 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 1.36e-05/0.003896, allocations: 8 kB / 1.003 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.916e-05/0.003925, allocations: 31.91 kB / 1.003 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.161e-05/0.003966, allocations: 31.86 kB / 1.003 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.004112, allocations: 143.4 kB / 1.004 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.004114, allocations: 0 / 1.004 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of FrontEnd: time 5.31e-07/0.004114, allocations: 0 / 1.004 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.516e-06/0.004118, allocations: 0 / 1.004 GB, free: 10.46 MB / 0.9636 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.0005281/0.004646, allocations: 423.2 kB / 1.004 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.00468, allocations: 9.344 kB / 1.004 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.377e-05/0.004713, allocations: 46.73 kB / 1.004 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.004745, allocations: 24.8 kB / 1.004 GB, free: 9.93 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.004954, allocations: 177.4 kB / 1.004 GB, free: 9.73 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.004967, allocations: 12.38 kB / 1.004 GB, free: 9.719 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.00499, allocations: 16.36 kB / 1.004 GB, free: 9.703 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.005186, allocations: 146.4 kB / 1.004 GB, free: 9.539 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.005196, allocations: 4.125 kB / 1.004 GB, free: 9.535 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.005209, allocations: 8.125 kB / 1.004 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.005215, allocations: 0 / 1.004 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.005348, allocations: 79.88 kB / 1.005 GB, free: 9.449 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006203/0.005969, allocations: 0.6799 MB / 1.005 GB, free: 8.711 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 9.253e-05/0.006061, allocations: 42.55 kB / 1.005 GB, free: 8.66 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.637e-05/0.006118, allocations: 32.84 kB / 1.005 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.006133, allocations: 4 kB / 1.005 GB, free: 8.621 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.006284, allocations: 134.8 kB / 1.005 GB, free: 8.465 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=11): time 1.002e-06/0.006285, allocations: 0 / 1.005 GB, free: 8.465 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11): time 0.0002956/0.00658, allocations: 169.3 kB / 1.006 GB, free: 8.293 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.006632, allocations: 132.5 kB / 1.006 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.006759, allocations: 199.3 kB / 1.006 GB, free: 7.926 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.006774, allocations: 33.7 kB / 1.006 GB, free: 7.887 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.249e-05/0.006836, allocations: 128 kB / 1.006 GB, free: 7.758 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.006862, allocations: 43.83 kB / 1.006 GB, free: 7.715 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.164e-05/0.006904, allocations: 37.7 kB / 1.006 GB, free: 7.672 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.859e-05/0.006982, allocations: 334.8 kB / 1.006 GB, free: 7.336 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.441e-05/0.007047, allocations: 35.97 kB / 1.006 GB, free: 7.301 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.007154, allocations: 152.2 kB / 1.007 GB, free: 7.102 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.007342, allocations: 202.4 kB / 1.007 GB, free: 6.852 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.007346, allocations: 7.938 kB / 1.007 GB, free: 6.844 MB / 0.9636 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002241/0.007571, allocations: 213.4 kB / 1.007 GB, free: 6.629 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.007583, allocations: 10.34 kB / 1.007 GB, free: 6.621 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.007589, allocations: 4 kB / 1.007 GB, free: 6.617 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.007601, allocations: 4 kB / 1.007 GB, free: 6.613 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.624e-05/0.007667, allocations: 35.86 kB / 1.007 GB, free: 6.578 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.007676, allocations: 8 kB / 1.007 GB, free: 6.57 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.713e-05/0.007753, allocations: 31.86 kB / 1.007 GB, free: 6.539 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.007762, allocations: 12.22 kB / 1.007 GB, free: 6.527 MB / 0.9636 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 8.073e-05/0.007842, allocations: 139 kB / 1.007 GB, free: 6.387 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.838e-05/0.007861, allocations: 19.91 kB / 1.007 GB, free: 6.367 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.00789, allocations: 21.45 kB / 1.007 GB, free: 6.348 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.007892, allocations: 0 / 1.007 GB, free: 6.348 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.007897, allocations: 8.172 kB / 1.007 GB, free: 6.34 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.007901, allocations: 0 / 1.007 GB, free: 6.34 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004365/0.008338, allocations: 488.6 kB / 1.008 GB, free: 5.812 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.008339, allocations: 4 kB / 1.008 GB, free: 5.809 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.444e-05/0.008394, allocations: 19.98 kB / 1.008 GB, free: 5.789 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.008395, allocations: 0 / 1.008 GB, free: 5.789 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.008406, allocations: 4 kB / 1.008 GB, free: 5.785 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.008409, allocations: 3.984 kB / 1.008 GB, free: 5.781 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.00841, allocations: 3.938 kB / 1.008 GB, free: 5.777 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002861/0.008697, allocations: 360.2 kB / 1.008 GB, free: 5.402 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.661e-05/0.008713, allocations: 19.91 kB / 1.008 GB, free: 5.383 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.008729, allocations: 0 / 1.008 GB, free: 5.383 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.19e-05/0.008811, allocations: 16.03 kB / 1.008 GB, free: 5.367 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.413e-05/0.008855, allocations: 19.84 kB / 1.008 GB, free: 5.348 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.515e-06/0.008863, allocations: 8 kB / 1.008 GB, free: 5.34 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0003272/0.00919, allocations: 144.4 kB / 1.008 GB, free: 5.199 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.00919, allocations: 0 / 1.008 GB, free: 5.199 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002291/0.009419, allocations: 28 kB / 1.008 GB, free: 5.172 MB / 0.9636 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.0004455/0.009864, allocations: 0.8851 MB / 1.009 GB, free: 4.254 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001961/0.01006, allocations: 116.7 kB / 1.009 GB, free: 4.141 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.01006, allocations: 0 / 1.009 GB, free: 4.141 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 7.758e-05/0.01014, allocations: 56.03 kB / 1.009 GB, free: 4.086 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.01048, allocations: 66.11 kB / 1.009 GB, free: 4.023 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.01216, allocations: 2.239 MB / 1.012 GB, free: 1.59 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.529e-05/0.01224, allocations: 108.3 kB / 1.012 GB, free: 1.461 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 6.024e-05/0.0123, allocations: 25.88 kB / 1.012 GB, free: 1.438 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.073e-05/0.01236, allocations: 48.48 kB / 1.012 GB, free: 1.391 MB / 0.9636 GB Notification: Performance of SimCode: time 6.01e-07/0.01236, allocations: 0 / 1.012 GB, free: 1.391 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07895/0.09131, allocations: 4.914 MB / 1.017 GB, free: 12.66 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.232, allocations: 4 kB / 1.017 GB, free: 12.66 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu) > Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset_fmpy.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../Buildings_13_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu) > Buildings_13_Buildings.Utilities.Math.Examples.IntegratorWithReset_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.720745489001274]