Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008165/0.0008165, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008411/0.0008411, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8734/0.8734, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.762/1.762, allocations: 377.8 MB / 0.6221 GB, free: 8.66 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 0.981 GB, free: 2.559 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.742e-05/1.883e-05, allocations: 8.953 kB / 0.981 GB, free: 2.551 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002331/0.00235, allocations: 1.786 MB / 0.9827 GB, free: 0.7539 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0008549/0.003205, allocations: 0.5494 MB / 0.9832 GB, free: 204 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.744e-05/0.003302, allocations: 7.938 kB / 0.9833 GB, free: 196 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.003431, allocations: 23.67 kB / 0.9833 GB, free: 172 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.703e-05/0.003498, allocations: 31.72 kB / 0.9833 GB, free: 140 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.003716, allocations: 71.78 kB / 0.9834 GB, free: 68 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0004737/0.00419, allocations: 171.5 kB / 0.9835 GB, free: 15.89 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.004317, allocations: 37.77 kB / 0.9836 GB, free: 15.86 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 9.666e-05/0.004414, allocations: 79.78 kB / 0.9837 GB, free: 15.78 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 5.638e-05/0.00447, allocations: 43.83 kB / 0.9837 GB, free: 15.74 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.591e-05/0.004496, allocations: 12 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 1.277e-05/0.004509, allocations: 8 kB / 0.9837 GB, free: 15.72 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 3.286e-05/0.004542, allocations: 31.91 kB / 0.9837 GB, free: 15.69 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 4.86e-05/0.00459, allocations: 35.84 kB / 0.9838 GB, free: 15.65 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.004747, allocations: 139.4 kB / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.004749, allocations: 0 / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.343e-06/0.00475, allocations: 0 / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.004755, allocations: 0 / 0.9839 GB, free: 15.52 MB / 0.948 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.0005646/0.005319, allocations: 439 kB / 0.9843 GB, free: 15.05 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.005361, allocations: 8.031 kB / 0.9843 GB, free: 15.05 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.456e-05/0.005395, allocations: 42.73 kB / 0.9844 GB, free: 15 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.779e-05/0.005433, allocations: 24.8 kB / 0.9844 GB, free: 14.97 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002514/0.005684, allocations: 173.9 kB / 0.9846 GB, free: 14.78 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.005698, allocations: 16.38 kB / 0.9846 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.005724, allocations: 16.36 kB / 0.9846 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.005936, allocations: 152.5 kB / 0.9847 GB, free: 14.58 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.005945, allocations: 192 / 0.9847 GB, free: 14.58 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.005959, allocations: 16.06 kB / 0.9848 GB, free: 14.56 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.005965, allocations: 0 / 0.9848 GB, free: 14.56 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001325/0.006097, allocations: 71.88 kB / 0.9848 GB, free: 14.49 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006787/0.006776, allocations: 0.6762 MB / 0.9855 GB, free: 13.76 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.006878, allocations: 42.56 kB / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.898e-05/0.006937, allocations: 36.83 kB / 0.9856 GB, free: 13.67 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.006958, allocations: 3.938 kB / 0.9856 GB, free: 13.66 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001642/0.007122, allocations: 122.9 kB / 0.9857 GB, free: 13.52 MB / 0.948 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.007123, allocations: 0 / 0.9857 GB, free: 13.52 MB / 0.948 GB Notification: Performance of matching and sorting (n=11): time 0.0003109/0.007434, allocations: 177.5 kB / 0.9859 GB, free: 13.34 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.007488, allocations: 132.5 kB / 0.986 GB, free: 13.18 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.007614, allocations: 199.1 kB / 0.9862 GB, free: 12.98 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.007627, allocations: 25.7 kB / 0.9862 GB, free: 12.95 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.819e-05/0.007695, allocations: 135.9 kB / 0.9863 GB, free: 12.81 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/0.00772, allocations: 35.69 kB / 0.9864 GB, free: 12.77 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-05/0.007765, allocations: 37.7 kB / 0.9864 GB, free: 12.73 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.309e-05/0.007848, allocations: 330.8 kB / 0.9867 GB, free: 12.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.011e-05/0.007918, allocations: 35.97 kB / 0.9867 GB, free: 12.36 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.008026, allocations: 150.6 kB / 0.9869 GB, free: 12.16 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.008229, allocations: 202.4 kB / 0.9871 GB, free: 11.91 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.008233, allocations: 7.875 kB / 0.9871 GB, free: 11.91 MB / 0.948 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002443/0.008478, allocations: 201.4 kB / 0.9873 GB, free: 11.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.008493, allocations: 14.91 kB / 0.9873 GB, free: 11.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.0085, allocations: 4.047 kB / 0.9873 GB, free: 11.69 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.008515, allocations: 8.484 kB / 0.9873 GB, free: 11.68 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.559e-05/0.00859, allocations: 39.92 kB / 0.9873 GB, free: 11.64 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.008599, allocations: 11.94 kB / 0.9874 GB, free: 11.63 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.993e-05/0.008679, allocations: 27.83 kB / 0.9874 GB, free: 11.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.008691, allocations: 15.98 kB / 0.9874 GB, free: 11.59 MB / 0.948 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 9.006e-05/0.008781, allocations: 137.6 kB / 0.9875 GB, free: 11.44 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.288e-05/0.008804, allocations: 19.91 kB / 0.9875 GB, free: 11.42 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.322e-05/0.008837, allocations: 21.45 kB / 0.9876 GB, free: 11.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.00884, allocations: 0 / 0.9876 GB, free: 11.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.008846, allocations: 4 kB / 0.9876 GB, free: 11.39 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.008851, allocations: 4 kB / 0.9876 GB, free: 11.39 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004743/0.009326, allocations: 484.7 kB / 0.988 GB, free: 10.87 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.009328, allocations: 320 / 0.988 GB, free: 10.87 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.809e-05/0.009386, allocations: 15.98 kB / 0.9881 GB, free: 10.85 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.009389, allocations: 0 / 0.9881 GB, free: 10.85 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.0094, allocations: 8 kB / 0.9881 GB, free: 10.84 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.009402, allocations: 3.938 kB / 0.9881 GB, free: 10.84 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.009403, allocations: 0 / 0.9881 GB, free: 10.84 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003073/0.009711, allocations: 368.1 kB / 0.9884 GB, free: 10.46 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.24e-05/0.009733, allocations: 23.89 kB / 0.9884 GB, free: 10.43 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.009752, allocations: 7.938 kB / 0.9884 GB, free: 10.43 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.55e-05/0.009838, allocations: 11.98 kB / 0.9885 GB, free: 10.41 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.009883, allocations: 19.91 kB / 0.9885 GB, free: 10.39 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.009891, allocations: 4 kB / 0.9885 GB, free: 10.39 MB / 0.948 GB Notification: Performance of sorting global known variables: time 7.851e-05/0.00997, allocations: 144.4 kB / 0.9886 GB, free: 10.25 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.00997, allocations: 4 kB / 0.9886 GB, free: 10.25 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002423/0.01021, allocations: 28 kB / 0.9886 GB, free: 10.22 MB / 0.948 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.0005238/0.01074, allocations: 0.885 MB / 0.9895 GB, free: 9.297 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002193/0.01096, allocations: 120 kB / 0.9896 GB, free: 9.18 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01096, allocations: 0 / 0.9896 GB, free: 9.18 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.496e-05/0.01104, allocations: 47.91 kB / 0.9897 GB, free: 9.133 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.01144, allocations: 62.72 kB / 0.9897 GB, free: 9.074 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.01344, allocations: 2.238 MB / 0.9919 GB, free: 6.645 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.041e-05/0.01351, allocations: 108.3 kB / 0.992 GB, free: 6.523 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 6.71e-05/0.01357, allocations: 25.59 kB / 0.992 GB, free: 6.496 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.633e-05/0.01364, allocations: 52.48 kB / 0.9921 GB, free: 6.445 MB / 0.948 GB Notification: Performance of SimCode: time 5.21e-07/0.01364, allocations: 0 / 0.9921 GB, free: 6.445 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01719/0.03083, allocations: 4.92 MB / 0.9969 GB, free: 1.723 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.993/7.024, allocations: 1.719 kB / 0.9969 GB, free: 1.723 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.075932508334517]