Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_10_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.0015/0.0015, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.294/1.294, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.464/2.464, allocations: 437 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 63.91 kB / 0.8693 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6004/0.6019, allocations: 151.6 MB / 1.017 GB, free: 2.465 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003155/0.6051, allocations: 1.82 MB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.6062, allocations: 0.5415 MB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.6064, allocations: 0 / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.6066, allocations: 35.61 kB / 1.02 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.319e-05/0.6067, allocations: 27.72 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.607, allocations: 63.91 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002288/0.6072, allocations: 171.5 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.6074, allocations: 49.56 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.968e-05/0.6074, allocations: 55.78 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.776e-05/0.6075, allocations: 63.56 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.6076, allocations: 12 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.225e-05/0.6076, allocations: 12 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.6076, allocations: 27.86 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.839e-05/0.6077, allocations: 63.61 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001682/0.6079, allocations: 129.8 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.6079, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.132e-06/0.6079, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.6079, allocations: 4 kB / 1.02 GB, free: 15.38 MB / 0.7794 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.0006849/0.6086, allocations: 472.5 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.6087, allocations: 8.031 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.11e-05/0.6087, allocations: 46.69 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.787e-05/0.6088, allocations: 20.66 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.609, allocations: 231.9 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.609, allocations: 12.23 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.6091, allocations: 20.28 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.6094, allocations: 150 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.6094, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.6094, allocations: 4 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.6094, allocations: 4 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002331/0.6096, allocations: 71.89 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009411/0.6106, allocations: 0.7315 MB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.6108, allocations: 50.55 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.6109, allocations: 28.84 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.6109, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002814/0.6112, allocations: 138.6 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.6112, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004989/0.6117, allocations: 165.5 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.6118, allocations: 132.5 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.612, allocations: 199 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.612, allocations: 29.7 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.368e-05/0.6121, allocations: 131.9 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.5e-05/0.6122, allocations: 31.61 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.049e-05/0.6122, allocations: 41.7 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.6124, allocations: 326.8 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.6125, allocations: 47.97 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.6127, allocations: 145.6 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003251/0.613, allocations: 206.5 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.613, allocations: 3.938 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004131/0.6135, allocations: 213 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.6135, allocations: 8 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.6135, allocations: 4 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.6135, allocations: 4 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.6137, allocations: 35.91 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.6137, allocations: 11.94 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.6138, allocations: 32.23 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.6138, allocations: 8 kB / 1.024 GB, free: 11.28 MB / 0.7794 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.0001086/0.614, allocations: 137.7 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.614, allocations: 15.81 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.953e-05/0.614, allocations: 25.39 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.614, allocations: 0 / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.6141, allocations: 4.25 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.6141, allocations: 0 / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007167/0.6148, allocations: 0.5171 MB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.6148, allocations: 4 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.6149, allocations: 19.92 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.6149, allocations: 0 / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.615, allocations: 0 / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.615, allocations: 19.86 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.615, allocations: 0 / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004824/0.6155, allocations: 352.2 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.663e-05/0.6155, allocations: 100.9 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.6156, allocations: 0 / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.6157, allocations: 19.97 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.6158, allocations: 11.92 kB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.6158, allocations: 11.98 kB / 1.025 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001126/0.6159, allocations: 144.4 kB / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6159, allocations: 0 / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003404/0.6163, allocations: 28 kB / 1.025 GB, free: 9.785 MB / 0.7794 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.0007566/0.6171, allocations: 0.8966 MB / 1.026 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003176/0.6174, allocations: 115.8 kB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.6174, allocations: 1 kB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.6175, allocations: 48.03 kB / 1.026 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005523/0.6181, allocations: 73.84 kB / 1.026 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.6206, allocations: 2.256 MB / 1.029 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.6208, allocations: 0.7242 MB / 1.029 GB, free: 5.414 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.698e-05/0.6209, allocations: 17.55 kB / 1.029 GB, free: 5.395 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.332e-05/0.621, allocations: 51.42 kB / 1.029 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of SimCode: time 4.41e-07/0.621, allocations: 0 / 1.029 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.641, allocations: 3.962 MB / 1.033 GB, free: 1.48 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.366/8.007, allocations: 14.55 kB / 1.033 GB, free: 1.469 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches