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.0008382/0.0008382, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009203/0.0009203, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8977/0.8977, allocations: 177.2 MB / 202.8 MB, free: 5.734 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.773/1.773, allocations: 389 MB / 0.633 GB, free: 12.69 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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.374e-05/2.552e-05, allocations: 4.812 kB / 0.9997 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002671/0.002696, allocations: 1.917 MB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0009493/0.003646, allocations: 0.7089 MB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.884e-05/0.003745, allocations: 4 kB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0002267/0.003971, allocations: 79.59 kB / 1.002 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0003602/0.004331, allocations: 103.5 kB / 1.002 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004868/0.004818, allocations: 186 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.005045, allocations: 255.4 kB / 1.003 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.005182, allocations: 54.09 kB / 1.003 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.005332, allocations: 159.7 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.005495, allocations: 143.7 kB / 1.003 GB, free: 9.902 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/0.005525, allocations: 20 kB / 1.003 GB, free: 9.883 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.00563, allocations: 87.94 kB / 1.003 GB, free: 9.797 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.82e-05/0.005698, allocations: 59.77 kB / 1.003 GB, free: 9.738 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.521e-05/0.005764, allocations: 63.83 kB / 1.003 GB, free: 9.676 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003037/0.006067, allocations: 331 kB / 1.004 GB, free: 9.352 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.006071, allocations: 0 / 1.004 GB, free: 9.352 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.733e-06/0.006072, allocations: 0 / 1.004 GB, free: 9.352 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.006078, allocations: 0 / 1.004 GB, free: 9.352 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.0006041/0.006682, allocations: 0.518 MB / 1.004 GB, free: 8.797 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.00672, allocations: 8.75 kB / 1.004 GB, free: 8.789 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.781e-05/0.006758, allocations: 46.73 kB / 1.004 GB, free: 8.734 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/0.006802, allocations: 32.75 kB / 1.004 GB, free: 8.703 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.007148, allocations: 244.9 kB / 1.005 GB, free: 8.438 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.007166, allocations: 8.375 kB / 1.005 GB, free: 8.43 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/0.007193, allocations: 16.38 kB / 1.005 GB, free: 8.414 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.007504, allocations: 308.8 kB / 1.005 GB, free: 8.07 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.007513, allocations: 192 / 1.005 GB, free: 8.07 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.007529, allocations: 11.94 kB / 1.005 GB, free: 8.059 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.007535, allocations: 4 kB / 1.005 GB, free: 8.055 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.00771, allocations: 162 kB / 1.005 GB, free: 7.891 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006185/0.008328, allocations: 0.6098 MB / 1.006 GB, free: 7.23 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.008571, allocations: 184.2 kB / 1.006 GB, free: 7.035 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.00868, allocations: 118.7 kB / 1.006 GB, free: 6.91 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.49e-05/0.008695, allocations: 3.938 kB / 1.006 GB, free: 6.906 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.008909, allocations: 202.7 kB / 1.006 GB, free: 6.684 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.00891, allocations: 8.031 kB / 1.006 GB, free: 6.676 MB / 0.9636 GB Notification: Performance of matching and sorting (n=15): time 0.0004753/0.009385, allocations: 444.7 kB / 1.007 GB, free: 6.219 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.009446, allocations: 132.6 kB / 1.007 GB, free: 6.059 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.009654, allocations: 285.8 kB / 1.007 GB, free: 5.77 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.009674, allocations: 33.7 kB / 1.007 GB, free: 5.73 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 9.189e-05/0.009766, allocations: 156.4 kB / 1.007 GB, free: 5.574 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.954e-05/0.009796, allocations: 47.64 kB / 1.007 GB, free: 5.527 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.132e-05/0.009847, allocations: 37.7 kB / 1.007 GB, free: 5.484 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.784e-05/0.009935, allocations: 342.8 kB / 1.008 GB, free: 5.141 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.01005, allocations: 117.7 kB / 1.008 GB, free: 5.02 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.01019, allocations: 222.1 kB / 1.008 GB, free: 4.766 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.0104, allocations: 244.9 kB / 1.008 GB, free: 4.504 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.0104, allocations: 0 / 1.008 GB, free: 4.504 MB / 0.9636 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003214/0.01072, allocations: 379 kB / 1.008 GB, free: 4.117 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.01075, allocations: 37.69 kB / 1.008 GB, free: 4.074 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.01076, allocations: 0 / 1.008 GB, free: 4.074 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.01077, allocations: 4 kB / 1.008 GB, free: 4.07 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.379e-05/0.01086, allocations: 23.92 kB / 1.008 GB, free: 4.047 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.01086, allocations: 4 kB / 1.008 GB, free: 4.043 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.653e-05/0.01093, allocations: 23.88 kB / 1.009 GB, free: 4.02 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.01094, allocations: 11.98 kB / 1.009 GB, free: 4.008 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.0001316/0.01107, allocations: 203.5 kB / 1.009 GB, free: 3.793 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.429e-05/0.0111, allocations: 27.81 kB / 1.009 GB, free: 3.766 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.644e-05/0.01113, allocations: 25.77 kB / 1.009 GB, free: 3.742 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.01114, allocations: 7.984 kB / 1.009 GB, free: 3.734 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.01114, allocations: 0 / 1.009 GB, free: 3.734 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.01115, allocations: 0 / 1.009 GB, free: 3.734 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.01132, allocations: 232.6 kB / 1.009 GB, free: 3.465 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.01132, allocations: 0 / 1.009 GB, free: 3.465 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.661e-05/0.01138, allocations: 27.86 kB / 1.009 GB, free: 3.438 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.01139, allocations: 4 kB / 1.009 GB, free: 3.434 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.0114, allocations: 7.984 kB / 1.009 GB, free: 3.426 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.0114, allocations: 0 / 1.009 GB, free: 3.426 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.0114, allocations: 0 / 1.009 GB, free: 3.426 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007881/0.01219, allocations: 0.5251 MB / 1.01 GB, free: 2.863 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.593e-05/0.01222, allocations: 23.89 kB / 1.01 GB, free: 2.84 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.01225, allocations: 4 kB / 1.01 GB, free: 2.836 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.238e-05/0.0123, allocations: 16.05 kB / 1.01 GB, free: 2.82 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.754e-05/0.01237, allocations: 27.95 kB / 1.01 GB, free: 2.793 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.01239, allocations: 7.984 kB / 1.01 GB, free: 2.785 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0001258/0.01251, allocations: 201.2 kB / 1.01 GB, free: 2.59 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.01251, allocations: 0 / 1.01 GB, free: 2.59 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000204/0.01272, allocations: 59.89 kB / 1.01 GB, free: 2.531 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.0007286/0.01344, allocations: 1.104 MB / 1.011 GB, free: 1.379 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.000315/0.01376, allocations: 326.6 kB / 1.011 GB, free: 1.035 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01376, allocations: 0 / 1.011 GB, free: 1.035 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.01389, allocations: 193 kB / 1.011 GB, free: 0.8281 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.01412, allocations: 38.05 kB / 1.011 GB, free: 0.793 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.01639, allocations: 2.929 MB / 1.014 GB, free: 13.72 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.47e-05/0.01647, allocations: 144.8 kB / 1.014 GB, free: 13.56 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 5.864e-05/0.01653, allocations: 13.48 kB / 1.014 GB, free: 13.55 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.966e-05/0.01661, allocations: 80.47 kB / 1.015 GB, free: 13.47 MB / 0.9792 GB Notification: Performance of SimCode: time 7.72e-07/0.01661, allocations: 0 / 1.015 GB, free: 13.47 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.03827, allocations: 6.224 MB / 1.021 GB, free: 7.418 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.978/7.016, allocations: 16.95 kB / 1.021 GB, free: 7.406 MB / 0.9792 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 840.0] 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: 11.144374679774046]