Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_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.001341/0.001341, 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.001461/0.001461, allocations: 192.6 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.787/2.787, allocations: 469.4 MB / 0.742 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 68.91 kB / 0.9082 GB, free: 34.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2814, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003404/0.2849, allocations: 1.823 MB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.286, allocations: 0.5415 MB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.2861, allocations: 7.938 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.2863, allocations: 23.72 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.426e-05/0.2864, allocations: 23.75 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.2867, allocations: 67.84 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002419/0.287, allocations: 171.5 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.2871, allocations: 57.62 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.2873, allocations: 47.8 kB / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.612e-05/0.2874, allocations: 59.64 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.635e-05/0.2874, allocations: 12 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.587e-05/0.2874, allocations: 8 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.154e-05/0.2875, allocations: 35.84 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.484e-05/0.2876, allocations: 67.53 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.2878, allocations: 127.8 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2878, allocations: 0 / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.086e-06/0.2878, allocations: 0 / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.648e-06/0.2878, allocations: 3.938 kB / 1.067 GB, free: 11.43 MB / 0.8262 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.0007428/0.2885, allocations: 476.2 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.2886, allocations: 16.03 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.735e-05/0.2886, allocations: 42.73 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.872e-05/0.2887, allocations: 16.75 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.289, allocations: 236.4 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.289, allocations: 8.375 kB / 1.067 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.306e-05/0.289, allocations: 12.38 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.2893, allocations: 150 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2893, allocations: 0 / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.2894, allocations: 11.94 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.2894, allocations: 7.984 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002329/0.2896, allocations: 67.88 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008946/0.2905, allocations: 0.7353 MB / 1.068 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.2907, allocations: 46.56 kB / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.2908, allocations: 36.83 kB / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.2908, allocations: 0 / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002884/0.2911, allocations: 126.8 kB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.814e-06/0.2911, allocations: 4 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004954/0.2916, allocations: 165.3 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.2917, allocations: 132.5 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.2919, allocations: 198.9 kB / 1.069 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.2919, allocations: 33.7 kB / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.71e-05/0.292, allocations: 128.1 kB / 1.069 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.573e-05/0.2921, allocations: 35.55 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.025e-05/0.2921, allocations: 45.61 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2922, allocations: 330.8 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.2924, allocations: 39.91 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.2925, allocations: 157.8 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.2929, allocations: 190.4 kB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.2929, allocations: 8 kB / 1.07 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003921/0.2933, allocations: 209.5 kB / 1.07 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2933, allocations: 8 kB / 1.07 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.2933, allocations: 8 kB / 1.07 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.2933, allocations: 4 kB / 1.07 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.2935, allocations: 31.92 kB / 1.07 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.2935, allocations: 4 kB / 1.07 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.2936, allocations: 27.83 kB / 1.07 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.2937, allocations: 8 kB / 1.07 GB, free: 7.34 MB / 0.8262 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.000114/0.2938, allocations: 149.8 kB / 1.07 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.32e-05/0.2938, allocations: 19.81 kB / 1.07 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.445e-05/0.2939, allocations: 21.39 kB / 1.07 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2939, allocations: 4 kB / 1.07 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.2939, allocations: 0 / 1.07 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2939, allocations: 3.938 kB / 1.07 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007218/0.2946, allocations: 0.5173 MB / 1.071 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2946, allocations: 0 / 1.071 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.2948, allocations: 16.03 kB / 1.071 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.2948, allocations: 3.984 kB / 1.071 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.2948, allocations: 8 kB / 1.071 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2948, allocations: 3.938 kB / 1.071 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.2948, allocations: 4 kB / 1.071 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004835/0.2953, allocations: 356.2 kB / 1.071 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.864e-05/0.2954, allocations: 88.92 kB / 1.071 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.2954, allocations: 12.03 kB / 1.071 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.2956, allocations: 15.92 kB / 1.071 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.031e-05/0.2956, allocations: 15.98 kB / 1.071 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.2956, allocations: 4 kB / 1.071 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001004/0.2958, allocations: 140.5 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2958, allocations: 0 / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003345/0.2961, allocations: 31.91 kB / 1.072 GB, free: 5.84 MB / 0.8262 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.0008194/0.2969, allocations: 0.9105 MB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003328/0.2973, allocations: 116.1 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2973, allocations: 0 / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.2974, allocations: 51.91 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005525/0.298, allocations: 65.77 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.3007, allocations: 2.275 MB / 1.075 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.301, allocations: 0.7203 MB / 1.076 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.703e-05/0.3011, allocations: 17.92 kB / 1.076 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.4e-05/0.3012, allocations: 55.42 kB / 1.076 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3012, allocations: 0 / 1.076 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.3234, allocations: 3.98 MB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.355/7.678, allocations: 6.344 kB / 1.08 GB, free: 13.5 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches