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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009838/0.000984, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.007789/0.007789, allocations: 171.1 kB / 16.27 MB, free: 6.648 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.332/1.332, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.547/2.547, allocations: 437.8 MB / 0.7121 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003469/0.000347, allocations: 12 kB / 0.8729 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.621/0.6214, allocations: 153.8 MB / 1.023 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001962/0.6234, allocations: 1.519 MB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000854/0.6243, allocations: 0.5416 MB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.897e-05/0.6244, allocations: 0 / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.6245, allocations: 19.8 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.757e-05/0.6246, allocations: 15.84 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002077/0.6248, allocations: 59.89 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001967/0.625, allocations: 155.5 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.6252, allocations: 53.55 kB / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.656e-05/0.6253, allocations: 47.73 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.513e-05/0.6254, allocations: 51.64 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.6254, allocations: 4 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.553e-05/0.6254, allocations: 4 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.825e-05/0.6254, allocations: 19.86 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.397e-05/0.6255, allocations: 89.23 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.6257, allocations: 121.8 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.6257, allocations: 4 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6257, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.6257, allocations: 0 / 1.026 GB, free: 13.07 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.0006324/0.6263, allocations: 442.9 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.6264, allocations: 15.97 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.158e-05/0.6264, allocations: 46.73 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.24e-05/0.6265, allocations: 16.75 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.6267, allocations: 240.4 kB / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.6267, allocations: 12.23 kB / 1.026 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.046e-05/0.6268, allocations: 12.38 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002845/0.6271, allocations: 155.7 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.577e-06/0.6271, allocations: 0 / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.6271, allocations: 7.938 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.6271, allocations: 0 / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/0.6274, allocations: 87.88 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008188/0.6282, allocations: 0.7392 MB / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.6284, allocations: 50.56 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.6285, allocations: 40.83 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.6285, allocations: 160 / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002603/0.6288, allocations: 138.6 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.783e-06/0.6288, allocations: 4 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004892/0.6293, allocations: 177.5 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.6293, allocations: 140.5 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.6295, allocations: 198.9 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.6295, allocations: 33.7 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.99e-05/0.6296, allocations: 123.9 kB / 1.028 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/0.6297, allocations: 31.52 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.6297, allocations: 29.7 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.174e-05/0.6298, allocations: 326.8 kB / 1.029 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.6299, allocations: 47.97 kB / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.6301, allocations: 157.8 kB / 1.029 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.6305, allocations: 214.3 kB / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.6305, allocations: 8 kB / 1.029 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004313/0.6309, allocations: 213.4 kB / 1.029 GB, free: 9.027 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.6309, allocations: 8 kB / 1.029 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.631, allocations: 4 kB / 1.029 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.631, allocations: 4 kB / 1.029 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.6311, allocations: 39.92 kB / 1.029 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.6311, allocations: 4 kB / 1.029 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.6313, allocations: 32.27 kB / 1.029 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.6313, allocations: 20 kB / 1.029 GB, free: 8.918 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.0001019/0.6314, allocations: 139.6 kB / 1.03 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.6314, allocations: 15.81 kB / 1.03 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.077e-05/0.6315, allocations: 25.39 kB / 1.03 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.6315, allocations: 0 / 1.03 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.6315, allocations: 0 / 1.03 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.6315, allocations: 11.94 kB / 1.03 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007335/0.6323, allocations: 0.5249 MB / 1.03 GB, free: 8.145 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.6323, allocations: 4 kB / 1.03 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.6324, allocations: 19.98 kB / 1.03 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.6324, allocations: 4 kB / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.6324, allocations: 0 / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.6324, allocations: 4 kB / 1.03 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.6325, allocations: 4.219 kB / 1.03 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000508/0.633, allocations: 388 kB / 1.031 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-05/0.633, allocations: 96.86 kB / 1.031 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.608e-05/0.6331, allocations: 8.031 kB / 1.031 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.6332, allocations: 15.98 kB / 1.031 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.445e-05/0.6333, allocations: 15.92 kB / 1.031 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.6333, allocations: 4 kB / 1.031 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001018/0.6334, allocations: 144.5 kB / 1.031 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6334, allocations: 0 / 1.031 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003349/0.6338, allocations: 28 kB / 1.031 GB, free: 7.383 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.000744/0.6345, allocations: 0.9084 MB / 1.032 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003211/0.6349, allocations: 131.7 kB / 1.032 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.6349, allocations: 1 kB / 1.032 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.635, allocations: 60.03 kB / 1.032 GB, free: 6.25 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005595/0.6356, allocations: 59 kB / 1.032 GB, free: 6.195 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.638, allocations: 2.331 MB / 1.034 GB, free: 3.66 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.6382, allocations: 0.7245 MB / 1.035 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.326e-05/0.6383, allocations: 13.55 kB / 1.035 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.046e-05/0.6384, allocations: 51.42 kB / 1.035 GB, free: 2.844 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6384, allocations: 3.938 kB / 1.035 GB, free: 2.84 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01298/0.6514, allocations: 3.596 MB / 1.039 GB, free: 15.39 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.6516, allocations: 201.1 kB / 1.039 GB, free: 15.14 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/2.426, allocations: 0 / 1.039 GB, free: 15.14 MB / 0.795 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