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.001675/0.001675, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 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.001576/0.001576, allocations: 215.9 kB / 22.25 MB, free: 5.078 MB / 14.72 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.531/1.531, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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 3.371/3.371, allocations: 0.505 GB / 0.8101 GB, free: 22.03 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: "" <> 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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 69.78 kB / 1.177 GB, free: 17.03 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4102/0.4123, allocations: 180.2 MB / 1.353 GB, free: 8.445 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003463/0.4157, allocations: 1.995 MB / 1.355 GB, free: 6.438 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001423/0.4171, allocations: 0.7602 MB / 1.356 GB, free: 5.672 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.4173, allocations: 7.938 kB / 1.356 GB, free: 5.664 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0002595/0.4175, allocations: 75.66 kB / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001497/0.4177, allocations: 107.5 kB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006224/0.4183, allocations: 179.7 kB / 1.356 GB, free: 5.309 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000353/0.4186, allocations: 255.5 kB / 1.356 GB, free: 5.059 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.4188, allocations: 46.17 kB / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.419, allocations: 123.6 kB / 1.356 GB, free: 4.895 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000254/0.4192, allocations: 159.5 kB / 1.356 GB, free: 4.738 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.61e-05/0.4193, allocations: 20 kB / 1.356 GB, free: 4.719 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.4194, allocations: 103.8 kB / 1.357 GB, free: 4.617 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.33e-05/0.4195, allocations: 55.78 kB / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.4196, allocations: 107.3 kB / 1.357 GB, free: 4.457 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000432/0.4201, allocations: 306.8 kB / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.4201, allocations: 0 / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.244e-06/0.4201, allocations: 0 / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.4201, allocations: 0 / 1.357 GB, free: 4.156 MB / 1.045 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.0009384/0.421, allocations: 0.518 MB / 1.358 GB, free: 3.602 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.4211, allocations: 12.03 kB / 1.358 GB, free: 3.59 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.793e-05/0.4211, allocations: 46.73 kB / 1.358 GB, free: 3.535 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.4212, allocations: 32.75 kB / 1.358 GB, free: 3.504 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.4218, allocations: 245.2 kB / 1.358 GB, free: 3.242 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.4218, allocations: 12.38 kB / 1.358 GB, free: 3.23 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.849e-05/0.4218, allocations: 16.38 kB / 1.358 GB, free: 3.215 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004302/0.4223, allocations: 227.1 kB / 1.358 GB, free: 2.969 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.4223, allocations: 0 / 1.358 GB, free: 2.969 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.4223, allocations: 12 kB / 1.358 GB, free: 2.957 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.4223, allocations: 4 kB / 1.358 GB, free: 2.953 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002677/0.4226, allocations: 125.5 kB / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.4236, allocations: 0.6564 MB / 1.359 GB, free: 2.125 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004126/0.424, allocations: 158.6 kB / 1.359 GB, free: 1.961 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.4242, allocations: 88.83 kB / 1.359 GB, free: 1.871 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.4242, allocations: 0 / 1.359 GB, free: 1.871 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000316/0.4245, allocations: 174.7 kB / 1.359 GB, free: 1.684 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.4245, allocations: 0 / 1.359 GB, free: 1.684 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.000742/0.4253, allocations: 375.1 kB / 1.36 GB, free: 1.305 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.381e-05/0.4254, allocations: 132.5 kB / 1.36 GB, free: 1.145 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003201/0.4257, allocations: 285.8 kB / 1.36 GB, free: 0.8555 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.4257, allocations: 29.7 kB / 1.36 GB, free: 0.8203 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.4259, allocations: 164.3 kB / 1.36 GB, free: 0.6562 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.173e-05/0.4259, allocations: 43.69 kB / 1.36 GB, free: 0.6133 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.538e-05/0.426, allocations: 41.7 kB / 1.36 GB, free: 0.5664 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.4261, allocations: 334.8 kB / 1.361 GB, free: 236 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.4263, allocations: 87.95 kB / 1.361 GB, free: 148 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.4266, allocations: 139 kB / 1.361 GB, free: 15.99 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000375/0.4269, allocations: 244.1 kB / 1.361 GB, free: 15.73 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.427, allocations: 0 / 1.361 GB, free: 15.73 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005298/0.4275, allocations: 337.3 kB / 1.361 GB, free: 15.39 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.851e-05/0.4275, allocations: 37.69 kB / 1.361 GB, free: 15.35 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4275, allocations: 0 / 1.361 GB, free: 15.35 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.4276, allocations: 4 kB / 1.361 GB, free: 15.34 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.4277, allocations: 23.98 kB / 1.361 GB, free: 15.32 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.668e-05/0.4277, allocations: 7.938 kB / 1.361 GB, free: 15.31 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.4278, allocations: 19.88 kB / 1.361 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.4278, allocations: 12.09 kB / 1.361 GB, free: 15.28 MB / 1.061 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.0002014/0.428, allocations: 191.5 kB / 1.362 GB, free: 15.08 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.4281, allocations: 31.8 kB / 1.362 GB, free: 15.05 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.697e-05/0.4281, allocations: 25.77 kB / 1.362 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.4281, allocations: 0 / 1.362 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4282, allocations: 4 kB / 1.362 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.4282, allocations: 3.984 kB / 1.362 GB, free: 15.01 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003004/0.4285, allocations: 272.4 kB / 1.362 GB, free: 14.7 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4285, allocations: 0 / 1.362 GB, free: 14.7 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.4286, allocations: 23.92 kB / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.4286, allocations: 0 / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.4286, allocations: 4 kB / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.4286, allocations: 0 / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4286, allocations: 0 / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007765/0.4294, allocations: 476.7 kB / 1.362 GB, free: 14.19 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.932e-05/0.4294, allocations: 19.89 kB / 1.362 GB, free: 14.17 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.4294, allocations: 8 kB / 1.362 GB, free: 14.16 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.4295, allocations: 12.17 kB / 1.363 GB, free: 14.15 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.026e-05/0.4296, allocations: 27.89 kB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.4297, allocations: 11.94 kB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000215/0.4299, allocations: 201.2 kB / 1.363 GB, free: 13.91 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4299, allocations: 0 / 1.363 GB, free: 13.91 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003119/0.4302, allocations: 63.83 kB / 1.363 GB, free: 13.85 MB / 1.061 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.001187/0.4314, allocations: 1.026 MB / 1.364 GB, free: 12.79 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004865/0.4319, allocations: 265.6 kB / 1.364 GB, free: 12.52 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4319, allocations: 0 / 1.364 GB, free: 12.52 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002704/0.4321, allocations: 151.4 kB / 1.364 GB, free: 12.36 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.4325, allocations: 40.41 kB / 1.364 GB, free: 12.32 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003657/0.4361, allocations: 2.748 MB / 1.367 GB, free: 9.465 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.4365, allocations: 0.7553 MB / 1.368 GB, free: 8.684 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.558e-05/0.4366, allocations: 25.42 kB / 1.368 GB, free: 8.66 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.4367, allocations: 71.41 kB / 1.368 GB, free: 8.59 MB / 1.061 GB Notification: Performance of SimCode: time 6.81e-07/0.4367, allocations: 0 / 1.368 GB, free: 8.59 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04346/0.4802, allocations: 5.59 MB / 1.373 GB, free: 3.145 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.14, allocations: 5.312 kB / 1.373 GB, free: 3.141 MB / 1.061 GB " [Timeout remaining time 288] (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/jenkins1/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: 19.299110205844045]