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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001232/0.001232, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001193/0.001193, allocations: 191.3 kB / 16.25 MB, free: 6.152 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.225/1.225, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.109/2.109, allocations: 390.2 MB / 0.6644 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001254, allocations: 67.89 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5176/0.5189, allocations: 140.4 MB / 0.9492 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002277/0.5212, allocations: 1.862 MB / 0.951 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006433/0.5218, allocations: 0.5314 MB / 0.9516 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.204e-05/0.5219, allocations: 3.625 kB / 0.9516 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.5221, allocations: 21.17 kB / 0.9516 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.829e-05/0.5221, allocations: 22.44 kB / 0.9516 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.5223, allocations: 57.92 kB / 0.9517 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000165/0.5225, allocations: 179.6 kB / 0.9518 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.5226, allocations: 49.64 kB / 0.9519 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.263e-05/0.5227, allocations: 51.88 kB / 0.9519 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.751e-05/0.5227, allocations: 61.23 kB / 0.952 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.5227, allocations: 14.22 kB / 0.952 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.805e-05/0.5228, allocations: 9.625 kB / 0.952 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.304e-05/0.5228, allocations: 29 kB / 0.952 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.868e-05/0.5229, allocations: 63.52 kB / 0.9521 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.523, allocations: 135 kB / 0.9522 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.523, allocations: 0 / 0.9522 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.352e-06/0.523, allocations: 0 / 0.9522 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.523, allocations: 1.344 kB / 0.9522 GB, free: 6.844 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.0005126/0.5235, allocations: 475.1 kB / 0.9527 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.5236, allocations: 8.75 kB / 0.9527 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.752e-05/0.5236, allocations: 42.19 kB / 0.9527 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.5236, allocations: 34.8 kB / 0.9528 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.5238, allocations: 224.6 kB / 0.953 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.5238, allocations: 8.062 kB / 0.953 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.5238, allocations: 17.09 kB / 0.953 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/0.5241, allocations: 145.6 kB / 0.9531 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.5241, allocations: 3.938 kB / 0.9531 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.5241, allocations: 9.469 kB / 0.9532 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.5241, allocations: 3.719 kB / 0.9532 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001936/0.5243, allocations: 73.28 kB / 0.9532 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00063/0.525, allocations: 0.7352 MB / 0.9539 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.5251, allocations: 49.61 kB / 0.954 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.151e-05/0.5252, allocations: 33.38 kB / 0.954 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.5252, allocations: 5.109 kB / 0.954 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.5254, allocations: 124.9 kB / 0.9541 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.5254, allocations: 0 / 0.9541 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004088/0.5258, allocations: 168.7 kB / 0.9543 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.5259, allocations: 130.1 kB / 0.9544 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.526, allocations: 209.6 kB / 0.9546 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.526, allocations: 25.7 kB / 0.9547 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.879e-05/0.5261, allocations: 136.6 kB / 0.9548 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.284e-05/0.5261, allocations: 28.7 kB / 0.9548 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-05/0.5262, allocations: 44.14 kB / 0.9549 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.082e-05/0.5262, allocations: 332 kB / 0.9552 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.5263, allocations: 36.81 kB / 0.9552 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.5265, allocations: 148.8 kB / 0.9554 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.5267, allocations: 205 kB / 0.9555 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.5267, allocations: 2.219 kB / 0.9555 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003282/0.527, allocations: 202 kB / 0.9557 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.5271, allocations: 8.031 kB / 0.9557 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.5271, allocations: 5.062 kB / 0.9558 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.5271, allocations: 5.531 kB / 0.9558 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.5272, allocations: 43 kB / 0.9558 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.016e-06/0.5272, allocations: 9.688 kB / 0.9558 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.5274, allocations: 31.09 kB / 0.9558 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.5274, allocations: 13.31 kB / 0.9559 GB, free: 3.492 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 6.972e-05/0.5275, allocations: 140.4 kB / 0.956 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.5275, allocations: 17.44 kB / 0.956 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.501e-05/0.5275, allocations: 22.17 kB / 0.956 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.5275, allocations: 6.906 kB / 0.956 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.5275, allocations: 0 / 0.956 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.5275, allocations: 1.438 kB / 0.956 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005527/0.5281, allocations: 0.5029 MB / 0.9565 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.5281, allocations: 5.281 kB / 0.9565 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.5282, allocations: 23.8 kB / 0.9566 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.5282, allocations: 1.156 kB / 0.9566 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.5283, allocations: 6.422 kB / 0.9566 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.5283, allocations: 6.344 kB / 0.9566 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5283, allocations: 5.094 kB / 0.9566 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003746/0.5287, allocations: 352.9 kB / 0.9569 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.069e-05/0.5287, allocations: 99.05 kB / 0.957 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.5287, allocations: 7.031 kB / 0.957 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.5289, allocations: 19.03 kB / 0.957 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.5289, allocations: 15.45 kB / 0.957 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.529, allocations: 11.05 kB / 0.957 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.785e-05/0.529, allocations: 147.8 kB / 0.9572 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.529, allocations: 0 / 0.9572 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003158/0.5294, allocations: 26.12 kB / 0.9572 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.0006177/0.53, allocations: 0.898 MB / 0.9581 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003007/0.5303, allocations: 121.8 kB / 0.9582 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5303, allocations: 0 / 0.9582 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.5304, allocations: 52.94 kB / 0.9583 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.0005672/0.531, allocations: 66.16 kB / 0.9583 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.5333, allocations: 2.289 MB / 0.9606 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.5335, allocations: 0.721 MB / 0.9613 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.713e-05/0.5336, allocations: 24.06 kB / 0.9613 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.892e-05/0.5337, allocations: 52.66 kB / 0.9613 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of SimCode: time 6.91e-07/0.5337, allocations: 1.125 kB / 0.9613 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07491/0.6086, allocations: 3.779 MB / 0.965 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/0.6089, allocations: 202.8 kB / 0.9652 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.464, allocations: 5.688 kB / 0.9652 GB, free: 12.46 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