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.0008088/0.0008088, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0007961/0.0007961, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.9079/0.9079, allocations: 177.1 MB / 203.5 MB, free: 5.75 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 1.809/1.809, allocations: 389.1 MB / 0.6338 GB, free: 12.66 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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.433e-06/1.433e-06, allocations: 0 / 1.001 GB, free: 13.01 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.96e-05/2.103e-05, allocations: 2.281 kB / 1.001 GB, free: 13.01 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002056/0.002077, allocations: 1.925 MB / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0008412/0.002918, allocations: 0.705 MB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.927e-05/0.003008, allocations: 7.938 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001979/0.003206, allocations: 79.64 kB / 1.004 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 8.893e-05/0.003294, allocations: 95.5 kB / 1.004 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004109/0.003705, allocations: 187.1 kB / 1.004 GB, free: 10 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002173/0.003923, allocations: 267.3 kB / 1.004 GB, free: 9.742 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.004041, allocations: 46.17 kB / 1.004 GB, free: 9.691 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.004176, allocations: 151.7 kB / 1.004 GB, free: 9.543 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.004324, allocations: 139.7 kB / 1.004 GB, free: 9.406 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.004351, allocations: 23.98 kB / 1.004 GB, free: 9.383 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 9.754e-05/0.004449, allocations: 91.86 kB / 1.004 GB, free: 9.293 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.204e-05/0.004511, allocations: 55.83 kB / 1.005 GB, free: 9.238 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.816e-05/0.004569, allocations: 63.78 kB / 1.005 GB, free: 9.176 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002863/0.004855, allocations: 339 kB / 1.005 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.004857, allocations: 0 / 1.005 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.22e-07/0.004858, allocations: 0 / 1.005 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.004862, allocations: 0 / 1.005 GB, free: 8.844 MB / 0.9636 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.0005736/0.005436, allocations: 0.5063 MB / 1.005 GB, free: 8.301 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.005469, allocations: 12.73 kB / 1.005 GB, free: 8.289 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.005516, allocations: 36.75 kB / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.005819, allocations: 244.9 kB / 1.006 GB, free: 7.988 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.00584, allocations: 8.375 kB / 1.006 GB, free: 7.98 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.567e-05/0.005866, allocations: 16.38 kB / 1.006 GB, free: 7.965 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003346/0.0062, allocations: 304.8 kB / 1.006 GB, free: 7.625 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.006209, allocations: 4.172 kB / 1.006 GB, free: 7.621 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.006226, allocations: 12.12 kB / 1.006 GB, free: 7.609 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.006232, allocations: 8 kB / 1.006 GB, free: 7.602 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.006398, allocations: 170 kB / 1.006 GB, free: 7.43 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005126/0.006911, allocations: 0.5751 MB / 1.007 GB, free: 6.816 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000221/0.007132, allocations: 180.2 kB / 1.007 GB, free: 6.625 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.007236, allocations: 122.7 kB / 1.007 GB, free: 6.496 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.249e-05/0.007249, allocations: 4 kB / 1.007 GB, free: 6.492 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/0.00743, allocations: 206.6 kB / 1.007 GB, free: 6.266 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.007431, allocations: 0 / 1.007 GB, free: 6.266 MB / 0.9636 GB Notification: Performance of matching and sorting (n=15): time 0.0004425/0.007874, allocations: 440.8 kB / 1.008 GB, free: 5.812 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.007923, allocations: 132.5 kB / 1.008 GB, free: 5.652 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.008092, allocations: 269.8 kB / 1.008 GB, free: 5.379 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.008109, allocations: 33.7 kB / 1.008 GB, free: 5.34 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.008187, allocations: 160.4 kB / 1.008 GB, free: 5.18 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.84e-05/0.008215, allocations: 51.56 kB / 1.008 GB, free: 5.129 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.744e-05/0.008262, allocations: 37.72 kB / 1.008 GB, free: 5.086 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.008339, allocations: 334.8 kB / 1.009 GB, free: 4.75 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.008444, allocations: 117.7 kB / 1.009 GB, free: 4.629 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.008576, allocations: 214.2 kB / 1.009 GB, free: 4.383 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.008775, allocations: 249 kB / 1.009 GB, free: 4.117 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.008778, allocations: 4 kB / 1.009 GB, free: 4.113 MB / 0.9636 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000305/0.009083, allocations: 374.5 kB / 1.01 GB, free: 3.73 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.009111, allocations: 41.69 kB / 1.01 GB, free: 3.684 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.009117, allocations: 4 kB / 1.01 GB, free: 3.68 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.009128, allocations: 0 / 1.01 GB, free: 3.68 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.484e-05/0.009203, allocations: 23.98 kB / 1.01 GB, free: 3.656 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.009207, allocations: 4.094 kB / 1.01 GB, free: 3.652 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.424e-05/0.009272, allocations: 27.81 kB / 1.01 GB, free: 3.625 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.009285, allocations: 11.98 kB / 1.01 GB, free: 3.613 MB / 0.9636 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.0001101/0.009395, allocations: 189.3 kB / 1.01 GB, free: 3.414 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.112e-05/0.009416, allocations: 27.8 kB / 1.01 GB, free: 3.387 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.491e-05/0.009451, allocations: 29.77 kB / 1.01 GB, free: 3.359 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.009454, allocations: 4 kB / 1.01 GB, free: 3.355 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.009458, allocations: 0 / 1.01 GB, free: 3.355 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.009461, allocations: 4 kB / 1.01 GB, free: 3.352 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.00959, allocations: 209.1 kB / 1.01 GB, free: 3.117 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.009592, allocations: 4 kB / 1.01 GB, free: 3.113 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.536e-05/0.009647, allocations: 15.98 kB / 1.01 GB, free: 3.098 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.00965, allocations: 7.875 kB / 1.01 GB, free: 3.09 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.009661, allocations: 4 kB / 1.01 GB, free: 3.086 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.009662, allocations: 0 / 1.01 GB, free: 3.086 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.009663, allocations: 0 / 1.01 GB, free: 3.086 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.01012, allocations: 0.5239 MB / 1.011 GB, free: 2.527 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.18e-05/0.01014, allocations: 27.67 kB / 1.011 GB, free: 2.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.602e-05/0.01016, allocations: 8 kB / 1.011 GB, free: 2.492 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.832e-05/0.01021, allocations: 11.98 kB / 1.011 GB, free: 2.48 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.01027, allocations: 23.95 kB / 1.011 GB, free: 2.457 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.01028, allocations: 8.125 kB / 1.011 GB, free: 2.449 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.00011/0.01039, allocations: 193.2 kB / 1.011 GB, free: 2.262 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.01039, allocations: 3.938 kB / 1.011 GB, free: 2.258 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000182/0.01057, allocations: 59.89 kB / 1.011 GB, free: 2.199 MB / 0.9636 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.000145/0.01072, allocations: 139.2 kB / 1.011 GB, free: 2.051 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003041/0.01102, allocations: 325.4 kB / 1.011 GB, free: 1.711 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01103, allocations: 0 / 1.011 GB, free: 1.711 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.01115, allocations: 185 kB / 1.012 GB, free: 1.512 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001871/0.01134, allocations: 32.66 kB / 1.012 GB, free: 1.48 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005288/0.01187, allocations: 0.506 MB / 1.012 GB, free: 0.9375 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.33e-05/0.01195, allocations: 140.7 kB / 1.012 GB, free: 0.7773 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.53e-05/0.01199, allocations: 24.48 kB / 1.012 GB, free: 0.7539 MB / 0.9636 GB Notification: Performance of SimCode: time 5.51e-07/0.01199, allocations: 0 / 1.012 GB, free: 0.7539 MB / 0.9636 GB Notification: Performance of Templates: time 0.003279/0.01527, allocations: 3.041 MB / 1.015 GB, free: 13.72 MB / 0.9792 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 7.121826137416065]