Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001121/0.001121, allocations: 85.27 kB / 19.87 MB, free: 4.613 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.001154/0.001154, allocations: 165.4 kB / 23.27 MB, free: 1.219 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.12/1.12, allocations: 177.2 MB / 203.7 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.521/2.521, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 0.8897 GB, free: 9.766 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.724e-05/2.897e-05, allocations: 2.312 kB / 0.8897 GB, free: 9.762 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.0033/0.003329, allocations: 1.989 MB / 0.8917 GB, free: 7.762 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001248/0.004578, allocations: 0.7128 MB / 0.8924 GB, free: 7.043 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.004686, allocations: 7.938 kB / 0.8924 GB, free: 7.035 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.000204/0.00489, allocations: 83.58 kB / 0.8925 GB, free: 6.953 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.005021, allocations: 87.58 kB / 0.8925 GB, free: 6.867 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.000528/0.005549, allocations: 187.6 kB / 0.8927 GB, free: 6.684 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0003084/0.005857, allocations: 267.3 kB / 0.893 GB, free: 6.422 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.005992, allocations: 50.16 kB / 0.893 GB, free: 6.367 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.006202, allocations: 155.7 kB / 0.8932 GB, free: 6.215 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.006388, allocations: 135.7 kB / 0.8933 GB, free: 6.082 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.53e-05/0.006423, allocations: 20 kB / 0.8933 GB, free: 6.062 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.006557, allocations: 83.88 kB / 0.8934 GB, free: 5.98 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 6.73e-05/0.006624, allocations: 59.77 kB / 0.8935 GB, free: 5.922 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 6.575e-05/0.00669, allocations: 59.78 kB / 0.8935 GB, free: 5.863 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002923/0.006982, allocations: 231.2 kB / 0.8937 GB, free: 5.637 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.006984, allocations: 0 / 0.8937 GB, free: 5.637 MB / 0.8542 GB Notification: Performance of FrontEnd: time 9.52e-07/0.006985, allocations: 0 / 0.8937 GB, free: 5.637 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.006989, allocations: 0 / 0.8937 GB, free: 5.637 MB / 0.8542 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.0007769/0.007766, allocations: 0.6022 MB / 0.8943 GB, free: 4.992 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.007804, allocations: 12.62 kB / 0.8943 GB, free: 4.98 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/0.007874, allocations: 40.75 kB / 0.8944 GB, free: 4.941 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.008133, allocations: 231.5 kB / 0.8946 GB, free: 4.688 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.008157, allocations: 12.38 kB / 0.8946 GB, free: 4.676 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/0.008185, allocations: 12.38 kB / 0.8946 GB, free: 4.664 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003243/0.008509, allocations: 260.8 kB / 0.8949 GB, free: 4.359 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.008518, allocations: 192 / 0.8949 GB, free: 4.359 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.008532, allocations: 4.375 kB / 0.8949 GB, free: 4.355 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.008541, allocations: 7.938 kB / 0.8949 GB, free: 4.348 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.008645, allocations: 82.05 kB / 0.895 GB, free: 4.262 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006212/0.009266, allocations: 0.6858 MB / 0.8956 GB, free: 3.539 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001068/0.009373, allocations: 100.8 kB / 0.8957 GB, free: 3.422 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.614e-05/0.009419, allocations: 69.5 kB / 0.8958 GB, free: 3.344 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 7.714e-06/0.009427, allocations: 0 / 0.8958 GB, free: 3.344 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001142/0.009541, allocations: 152.4 kB / 0.8959 GB, free: 3.168 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.009542, allocations: 0 / 0.8959 GB, free: 3.168 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15): time 0.0002315/0.009774, allocations: 250.5 kB / 0.8962 GB, free: 2.898 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.009816, allocations: 140.5 kB / 0.8963 GB, free: 2.73 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.009973, allocations: 300.2 kB / 0.8966 GB, free: 2.422 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.00999, allocations: 33.7 kB / 0.8966 GB, free: 2.383 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 8.66e-05/0.01008, allocations: 211.1 kB / 0.8968 GB, free: 2.172 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/0.0101, allocations: 47.61 kB / 0.8969 GB, free: 2.125 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.923e-05/0.01015, allocations: 55.2 kB / 0.8969 GB, free: 2.062 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002406/0.01039, allocations: 0.5118 MB / 0.8974 GB, free: 1.539 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.008e-05/0.01043, allocations: 53.67 kB / 0.8975 GB, free: 1.48 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.137e-05/0.01051, allocations: 169.8 kB / 0.8976 GB, free: 1.273 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.403e-05/0.01061, allocations: 153.7 kB / 0.8978 GB, free: 1.098 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.01061, allocations: 0 / 0.8978 GB, free: 1.098 MB / 0.8542 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001827/0.01079, allocations: 236.8 kB / 0.898 GB, free: 0.8477 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.01082, allocations: 41.64 kB / 0.898 GB, free: 0.8008 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.01082, allocations: 0 / 0.898 GB, free: 0.8008 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.356e-06/0.01083, allocations: 3.938 kB / 0.8981 GB, free: 0.7969 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.403e-05/0.0109, allocations: 23.98 kB / 0.8981 GB, free: 0.7734 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/0.0109, allocations: 0 / 0.8981 GB, free: 0.7734 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.943e-05/0.01096, allocations: 24.03 kB / 0.8981 GB, free: 0.75 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.01097, allocations: 11.94 kB / 0.8981 GB, free: 0.7383 MB / 0.8542 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 9.097e-05/0.01106, allocations: 206.1 kB / 0.8983 GB, free: 0.5195 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.01109, allocations: 39.8 kB / 0.8983 GB, free: 492 kB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.804e-05/0.01112, allocations: 21.77 kB / 0.8984 GB, free: 468 kB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.01112, allocations: 0 / 0.8984 GB, free: 468 kB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.01112, allocations: 4 kB / 0.8984 GB, free: 464 kB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.01112, allocations: 3.984 kB / 0.8984 GB, free: 460 kB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.01123, allocations: 169.2 kB / 0.8985 GB, free: 264 kB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.01124, allocations: 4 kB / 0.8985 GB, free: 260 kB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.351e-05/0.01128, allocations: 12 kB / 0.8985 GB, free: 248 kB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.01128, allocations: 0 / 0.8985 GB, free: 248 kB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.01129, allocations: 7.984 kB / 0.8986 GB, free: 240 kB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.01129, allocations: 3.938 kB / 0.8986 GB, free: 236 kB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.01129, allocations: 0 / 0.8986 GB, free: 236 kB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.01156, allocations: 329.2 kB / 0.8989 GB, free: 15.87 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.673e-05/0.01157, allocations: 15.86 kB / 0.8989 GB, free: 15.85 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.01159, allocations: 12 kB / 0.8989 GB, free: 15.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.271e-05/0.01164, allocations: 15.95 kB / 0.8989 GB, free: 15.82 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.605e-05/0.01168, allocations: 27.95 kB / 0.8989 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.01169, allocations: 4 kB / 0.8989 GB, free: 15.79 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.712e-05/0.01177, allocations: 205.1 kB / 0.8991 GB, free: 15.59 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4e-08/0.01177, allocations: 0 / 0.8991 GB, free: 15.59 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001697/0.01194, allocations: 51.94 kB / 0.8992 GB, free: 15.54 MB / 0.8698 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.000117/0.01206, allocations: 137.6 kB / 0.8993 GB, free: 15.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000165/0.01222, allocations: 220.9 kB / 0.8995 GB, free: 15.16 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.01222, allocations: 0 / 0.8995 GB, free: 15.16 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.825e-05/0.0123, allocations: 148.7 kB / 0.8997 GB, free: 14.99 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001588/0.01246, allocations: 32.48 kB / 0.8997 GB, free: 14.96 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004058/0.01287, allocations: 407.5 kB / 0.9001 GB, free: 14.52 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.894e-05/0.0129, allocations: 95.88 kB / 0.9002 GB, free: 14.41 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.283e-05/0.01295, allocations: 13.48 kB / 0.9002 GB, free: 14.4 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.01306, allocations: 122.2 kB / 0.9003 GB, free: 14.28 MB / 0.8698 GB Notification: Performance of SimCode: time 7.01e-07/0.01306, allocations: 4 kB / 0.9003 GB, free: 14.27 MB / 0.8698 GB Notification: Performance of Templates: time 0.004602/0.01766, allocations: 3.148 MB / 0.9034 GB, free: 11.18 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.563896609004587]