Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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.001822/0.001822, allocations: 80.41 kB / 20.23 MB, free: 4.203 MB / 18.57 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.002502/0.002502, allocations: 161.7 kB / 23.54 MB, free: 0.8945 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 1.568/1.568, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.822/2.822, allocations: 359 MB / 0.6048 GB, free: 10.93 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.532e-06/1.532e-06, allocations: 0 / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.354e-05/3.508e-05, allocations: 6.797 kB / 0.7864 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004539/0.004574, allocations: 1.939 MB / 0.7883 GB, free: 10.87 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001898/0.006473, allocations: 0.7076 MB / 0.7889 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.006725, allocations: 0 / 0.7889 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0003334/0.007059, allocations: 76.5 kB / 0.789 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0002334/0.007292, allocations: 93.59 kB / 0.7891 GB, free: 9.992 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009231/0.008215, allocations: 193.7 kB / 0.7893 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0005701/0.008785, allocations: 259.4 kB / 0.7895 GB, free: 9.551 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.008984, allocations: 50.16 kB / 0.7896 GB, free: 9.504 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003609/0.009345, allocations: 153 kB / 0.7897 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003148/0.00966, allocations: 135.7 kB / 0.7899 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 6.332e-05/0.009723, allocations: 21.53 kB / 0.7899 GB, free: 9.203 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.009928, allocations: 91.91 kB / 0.79 GB, free: 9.113 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001241/0.01005, allocations: 59.78 kB / 0.79 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.01018, allocations: 63.77 kB / 0.7901 GB, free: 8.992 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0006587/0.01084, allocations: 332 kB / 0.7904 GB, free: 8.668 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.01084, allocations: 0 / 0.7904 GB, free: 8.668 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.764e-06/0.01084, allocations: 0 / 0.7904 GB, free: 8.668 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.01085, allocations: 1.031 kB / 0.7904 GB, free: 8.668 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001216/0.01207, allocations: 0.5079 MB / 0.7909 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.01212, allocations: 11.97 kB / 0.7909 GB, free: 8.113 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.01225, allocations: 38.2 kB / 0.791 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006528/0.0129, allocations: 255.7 kB / 0.7912 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.01294, allocations: 16.31 kB / 0.7912 GB, free: 7.789 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.01299, allocations: 12.38 kB / 0.7912 GB, free: 7.777 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005994/0.01358, allocations: 308.8 kB / 0.7915 GB, free: 7.434 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.0136, allocations: 192 / 0.7915 GB, free: 7.434 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.01363, allocations: 8.125 kB / 0.7915 GB, free: 7.426 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.01364, allocations: 8.703 kB / 0.7915 GB, free: 7.418 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003672/0.01401, allocations: 159.7 kB / 0.7917 GB, free: 7.258 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.01519, allocations: 0.5829 MB / 0.7923 GB, free: 6.637 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004704/0.01566, allocations: 190.1 kB / 0.7924 GB, free: 6.438 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.0159, allocations: 115.7 kB / 0.7925 GB, free: 6.316 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.01592, allocations: 0 / 0.7925 GB, free: 6.316 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005343/0.01645, allocations: 210.7 kB / 0.7927 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.01645, allocations: 1.688 kB / 0.7927 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15): time 0.0008959/0.01735, allocations: 441.4 kB / 0.7932 GB, free: 5.633 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.01749, allocations: 142.2 kB / 0.7933 GB, free: 5.465 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003617/0.01785, allocations: 269.8 kB / 0.7936 GB, free: 5.191 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.01789, allocations: 29.7 kB / 0.7936 GB, free: 5.156 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.01806, allocations: 156.4 kB / 0.7937 GB, free: 5 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.18e-05/0.01812, allocations: 43.64 kB / 0.7938 GB, free: 4.957 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.01823, allocations: 38.48 kB / 0.7938 GB, free: 4.914 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002425/0.01847, allocations: 338.8 kB / 0.7941 GB, free: 4.574 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.0187, allocations: 118.2 kB / 0.7943 GB, free: 4.453 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003129/0.01901, allocations: 214.9 kB / 0.7945 GB, free: 4.207 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004507/0.01946, allocations: 250.3 kB / 0.7947 GB, free: 3.941 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01946, allocations: 0.5312 kB / 0.7947 GB, free: 3.941 MB / 0.7448 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006783/0.02014, allocations: 387.9 kB / 0.7951 GB, free: 3.547 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.018e-05/0.0202, allocations: 46.78 kB / 0.7951 GB, free: 3.496 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.02021, allocations: 0 / 0.7951 GB, free: 3.496 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.02023, allocations: 0 / 0.7951 GB, free: 3.496 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.02039, allocations: 33.14 kB / 0.7951 GB, free: 3.465 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.0204, allocations: 0 / 0.7951 GB, free: 3.465 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.02055, allocations: 27.88 kB / 0.7952 GB, free: 3.438 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.02056, allocations: 4.812 kB / 0.7952 GB, free: 3.434 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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.0002528/0.02082, allocations: 192.4 kB / 0.7954 GB, free: 3.23 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.578e-05/0.02088, allocations: 31.8 kB / 0.7954 GB, free: 3.199 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.343e-05/0.02095, allocations: 35.11 kB / 0.7954 GB, free: 3.172 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.02095, allocations: 0 / 0.7954 GB, free: 3.172 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.02096, allocations: 0 / 0.7954 GB, free: 3.172 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.02096, allocations: 0.7812 kB / 0.7954 GB, free: 3.172 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002808/0.02124, allocations: 205.1 kB / 0.7956 GB, free: 2.941 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.02124, allocations: 1.938 kB / 0.7956 GB, free: 2.941 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.02136, allocations: 12 kB / 0.7956 GB, free: 2.93 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.02137, allocations: 3.938 kB / 0.7956 GB, free: 2.926 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.0214, allocations: 11.98 kB / 0.7956 GB, free: 2.914 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.0214, allocations: 0 / 0.7956 GB, free: 2.914 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.0214, allocations: 0.7812 kB / 0.7956 GB, free: 2.914 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009484/0.02235, allocations: 0.5208 MB / 0.7962 GB, free: 2.359 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.475e-05/0.0224, allocations: 35.75 kB / 0.7962 GB, free: 2.324 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.26e-05/0.02244, allocations: 4 kB / 0.7962 GB, free: 2.32 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.02256, allocations: 15.98 kB / 0.7962 GB, free: 2.305 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.02266, allocations: 23.95 kB / 0.7962 GB, free: 2.281 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.02269, allocations: 7.984 kB / 0.7962 GB, free: 2.273 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002314/0.02292, allocations: 193.2 kB / 0.7964 GB, free: 2.082 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.02292, allocations: 0 / 0.7964 GB, free: 2.082 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003435/0.02326, allocations: 60.52 kB / 0.7965 GB, free: 2.023 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0002755/0.02354, allocations: 140.9 kB / 0.7966 GB, free: 1.875 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006086/0.02415, allocations: 323.7 kB / 0.7969 GB, free: 1.535 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.02415, allocations: 0 / 0.7969 GB, free: 1.535 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000304/0.02445, allocations: 189.6 kB / 0.7971 GB, free: 1.332 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.02479, allocations: 46.14 kB / 0.7972 GB, free: 1.293 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.0259, allocations: 485.8 kB / 0.7976 GB, free: 0.7852 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001898/0.02609, allocations: 139.5 kB / 0.7977 GB, free: 0.6328 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001109/0.0262, allocations: 19.53 kB / 0.7978 GB, free: 0.6172 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.234e-05/0.02627, allocations: 25.58 kB / 0.7978 GB, free: 0.5938 MB / 0.7448 GB Notification: Performance of SimCode: time 9.21e-07/0.02627, allocations: 0 / 0.7978 GB, free: 0.5938 MB / 0.7448 GB Notification: Performance of Templates: time 0.008685/0.03495, allocations: 2.889 MB / 0.8006 GB, free: 13.77 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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: 8.347081013955176]