Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_9_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.001652/0.001652, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001532/0.001532, allocations: 192.3 kB / 16.13 MB, free: 6.703 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.297/1.297, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.188/2.188, allocations: 390.2 MB / 0.6643 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4857/0.4871, allocations: 140.4 MB / 0.949 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002209/0.4893, allocations: 1.867 MB / 0.9509 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005855/0.4899, allocations: 0.5295 MB / 0.9514 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.819e-05/0.49, allocations: 5.312 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001046/0.4901, allocations: 14.61 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.596e-05/0.4902, allocations: 26.53 kB / 0.9514 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.4903, allocations: 61.64 kB / 0.9515 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000146/0.4905, allocations: 164.9 kB / 0.9516 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.4906, allocations: 49.17 kB / 0.9517 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.321e-05/0.4907, allocations: 46.61 kB / 0.9517 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.328e-05/0.4907, allocations: 57.7 kB / 0.9518 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.4907, allocations: 6.438 kB / 0.9518 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.979e-05/0.4908, allocations: 5.625 kB / 0.9518 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.4908, allocations: 29.02 kB / 0.9518 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.923e-05/0.4908, allocations: 63.67 kB / 0.9519 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.491, allocations: 129.4 kB / 0.952 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.491, allocations: 0 / 0.952 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.41e-07/0.491, allocations: 0 / 0.952 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.491, allocations: 0 / 0.952 GB, free: 6.836 MB / 0.7169 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.0005105/0.4915, allocations: 473 kB / 0.9525 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.4915, allocations: 10.81 kB / 0.9525 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.967e-05/0.4916, allocations: 41.3 kB / 0.9525 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.419e-05/0.4916, allocations: 25.84 kB / 0.9525 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.4918, allocations: 224.7 kB / 0.9527 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.4918, allocations: 10 kB / 0.9528 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.4918, allocations: 20.19 kB / 0.9528 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.492, allocations: 150.8 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.4921, allocations: 5.312 kB / 0.9529 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.4921, allocations: 5.219 kB / 0.9529 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.4921, allocations: 2.719 kB / 0.9529 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.4923, allocations: 74.27 kB / 0.953 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006021/0.4929, allocations: 0.7425 MB / 0.9537 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.493, allocations: 42.44 kB / 0.9538 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.292e-05/0.4931, allocations: 40.02 kB / 0.9538 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.4931, allocations: 1.469 kB / 0.9538 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001887/0.4933, allocations: 129 kB / 0.9539 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.773e-06/0.4933, allocations: 3.984 kB / 0.9539 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.000389/0.4937, allocations: 164 kB / 0.9541 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.4938, allocations: 134.8 kB / 0.9542 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.4939, allocations: 207.6 kB / 0.9544 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.4939, allocations: 27.64 kB / 0.9544 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.68e-05/0.494, allocations: 132.2 kB / 0.9546 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.494, allocations: 37.25 kB / 0.9546 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.4941, allocations: 40.23 kB / 0.9546 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.519e-05/0.4941, allocations: 327.2 kB / 0.955 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.4942, allocations: 38.09 kB / 0.955 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.4943, allocations: 149.4 kB / 0.9551 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.4946, allocations: 209.7 kB / 0.9553 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4946, allocations: 0.9688 kB / 0.9553 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003292/0.4949, allocations: 205.6 kB / 0.9555 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.4949, allocations: 6.906 kB / 0.9555 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.495, allocations: 4.469 kB / 0.9555 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.495, allocations: 9 kB / 0.9556 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.4951, allocations: 35.7 kB / 0.9556 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.4951, allocations: 5.938 kB / 0.9556 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.4952, allocations: 31.62 kB / 0.9556 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.4953, allocations: 12.12 kB / 0.9556 GB, free: 3.48 MB / 0.7169 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 7.193e-05/0.4953, allocations: 136.3 kB / 0.9558 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.4954, allocations: 15.88 kB / 0.9558 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.4954, allocations: 30.92 kB / 0.9558 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4954, allocations: 2.344 kB / 0.9558 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.4954, allocations: 1.125 kB / 0.9558 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.4954, allocations: 1.156 kB / 0.9558 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000538/0.496, allocations: 0.5066 MB / 0.9563 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.496, allocations: 1.125 kB / 0.9563 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.4961, allocations: 19.89 kB / 0.9563 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.4961, allocations: 1.312 kB / 0.9563 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.4961, allocations: 6.031 kB / 0.9563 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.4961, allocations: 10.12 kB / 0.9563 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.4961, allocations: 1.125 kB / 0.9563 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.4965, allocations: 357.4 kB / 0.9567 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.88e-05/0.4965, allocations: 98.05 kB / 0.9568 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/0.4965, allocations: 6.531 kB / 0.9568 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.4967, allocations: 14.39 kB / 0.9568 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.4967, allocations: 18.3 kB / 0.9568 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.4968, allocations: 7.625 kB / 0.9568 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.527e-05/0.4968, allocations: 141.8 kB / 0.957 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4968, allocations: 0 / 0.957 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003007/0.4971, allocations: 26.62 kB / 0.957 GB, free: 2.281 MB / 0.7169 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.0004775/0.4976, allocations: 0.8997 MB / 0.9579 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002475/0.4979, allocations: 118.5 kB / 0.958 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4979, allocations: 0 / 0.958 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.498, allocations: 49.03 kB / 0.958 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004735/0.4985, allocations: 65.34 kB / 0.9581 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.5003, allocations: 2.295 MB / 0.9603 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.5006, allocations: 0.7214 MB / 0.961 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.494e-05/0.5006, allocations: 19.45 kB / 0.961 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.356e-05/0.5007, allocations: 49.55 kB / 0.9611 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of SimCode: time 3.4e-07/0.5007, allocations: 0 / 0.9611 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.188/1.688, allocations: 3.663 MB / 0.9647 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/1.689, allocations: 205.9 kB / 0.9649 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.954/3.642, allocations: 0 / 0.9649 GB, free: 12.52 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches