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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 108.9 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.132/3.132, allocations: 497.2 MB / 0.7811 GB, free: 33.57 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001913/0.001913, allocations: 62.75 kB / 1.134 GB, free: 33.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3822/0.3841, allocations: 173.9 MB / 1.304 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004033/0.3882, allocations: 1.96 MB / 1.306 GB, free: 15.55 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001957/0.3901, allocations: 0.7284 MB / 1.307 GB, free: 14.81 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.3903, allocations: 4 kB / 1.307 GB, free: 14.81 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0003839/0.3907, allocations: 79.66 kB / 1.307 GB, free: 14.73 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.3909, allocations: 91.56 kB / 1.307 GB, free: 14.64 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000861/0.3918, allocations: 183.4 kB / 1.307 GB, free: 14.46 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004896/0.3923, allocations: 267.4 kB / 1.307 GB, free: 14.2 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.3925, allocations: 49.89 kB / 1.307 GB, free: 14.16 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.3927, allocations: 111.7 kB / 1.307 GB, free: 14.05 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000325/0.393, allocations: 163.5 kB / 1.307 GB, free: 13.89 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.161e-05/0.3931, allocations: 28 kB / 1.308 GB, free: 13.86 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002481/0.3933, allocations: 95.86 kB / 1.308 GB, free: 13.77 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.3934, allocations: 55.83 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.3936, allocations: 103.3 kB / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0006058/0.3942, allocations: 310.8 kB / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3942, allocations: 0 / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.684e-06/0.3942, allocations: 0 / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.385e-06/0.3942, allocations: 0 / 1.308 GB, free: 13.3 MB / 1.014 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.001335/0.3956, allocations: 0.5933 MB / 1.309 GB, free: 12.66 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.3956, allocations: 8.625 kB / 1.309 GB, free: 12.65 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.749e-05/0.3957, allocations: 54.61 kB / 1.309 GB, free: 12.59 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.172e-05/0.3958, allocations: 32.75 kB / 1.309 GB, free: 12.55 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008385/0.3966, allocations: 311 kB / 1.309 GB, free: 12.21 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.3966, allocations: 8.375 kB / 1.309 GB, free: 12.21 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.3967, allocations: 16.38 kB / 1.309 GB, free: 12.19 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007057/0.3974, allocations: 227.6 kB / 1.309 GB, free: 11.95 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.3974, allocations: 0 / 1.309 GB, free: 11.95 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.3974, allocations: 11.98 kB / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.3975, allocations: 8 kB / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.3979, allocations: 133.5 kB / 1.309 GB, free: 11.8 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.3993, allocations: 0.677 MB / 1.31 GB, free: 11.06 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003488/0.3996, allocations: 150.6 kB / 1.31 GB, free: 10.91 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.3998, allocations: 88.83 kB / 1.31 GB, free: 10.82 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.3998, allocations: 0 / 1.31 GB, free: 10.82 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003036/0.4001, allocations: 179.2 kB / 1.31 GB, free: 10.62 MB / 1.014 GB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.4001, allocations: 3.938 kB / 1.31 GB, free: 10.62 MB / 1.014 GB Notification: Performance of matching and sorting (n=15): time 0.0007536/0.4009, allocations: 375 kB / 1.311 GB, free: 10.24 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.924e-05/0.401, allocations: 132.5 kB / 1.311 GB, free: 10.08 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.4013, allocations: 278.7 kB / 1.311 GB, free: 9.793 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.4013, allocations: 29.7 kB / 1.311 GB, free: 9.758 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.4014, allocations: 168.3 kB / 1.311 GB, free: 9.59 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.243e-05/0.4015, allocations: 39.64 kB / 1.311 GB, free: 9.551 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.886e-05/0.4016, allocations: 37.72 kB / 1.311 GB, free: 9.508 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001996/0.4018, allocations: 342.8 kB / 1.312 GB, free: 9.164 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.4019, allocations: 83.95 kB / 1.312 GB, free: 9.082 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.4022, allocations: 141 kB / 1.312 GB, free: 8.926 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003498/0.4026, allocations: 235.9 kB / 1.312 GB, free: 8.672 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.4026, allocations: 8 kB / 1.312 GB, free: 8.664 MB / 1.014 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005667/0.4032, allocations: 340.8 kB / 1.313 GB, free: 8.32 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.4033, allocations: 33.7 kB / 1.313 GB, free: 8.281 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.4033, allocations: 0 / 1.313 GB, free: 8.281 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.4033, allocations: 0 / 1.313 GB, free: 8.281 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.4035, allocations: 27.92 kB / 1.313 GB, free: 8.254 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.4035, allocations: 0 / 1.313 GB, free: 8.254 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.4036, allocations: 27.88 kB / 1.313 GB, free: 8.227 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.4036, allocations: 4 kB / 1.313 GB, free: 8.223 MB / 1.014 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.0002051/0.4038, allocations: 206.6 kB / 1.313 GB, free: 8.008 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.204e-05/0.4038, allocations: 27.81 kB / 1.313 GB, free: 7.98 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.154e-05/0.4039, allocations: 33.92 kB / 1.313 GB, free: 7.945 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.4039, allocations: 3.938 kB / 1.313 GB, free: 7.941 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.4039, allocations: 0 / 1.313 GB, free: 7.941 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4039, allocations: 0 / 1.313 GB, free: 7.941 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002962/0.4042, allocations: 289.4 kB / 1.313 GB, free: 7.609 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.4042, allocations: 4 kB / 1.313 GB, free: 7.605 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.4043, allocations: 23.92 kB / 1.313 GB, free: 7.582 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.206e-05/0.4043, allocations: 0 / 1.313 GB, free: 7.582 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.4044, allocations: 4 kB / 1.313 GB, free: 7.578 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.4044, allocations: 4 kB / 1.313 GB, free: 7.574 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4044, allocations: 0 / 1.313 GB, free: 7.574 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007559/0.4051, allocations: 472.6 kB / 1.314 GB, free: 7.09 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.112e-05/0.4052, allocations: 100.9 kB / 1.314 GB, free: 6.973 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.927e-05/0.4052, allocations: 8.062 kB / 1.314 GB, free: 6.965 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.4053, allocations: 15.98 kB / 1.314 GB, free: 6.949 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.713e-05/0.4054, allocations: 27.95 kB / 1.314 GB, free: 6.922 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.4054, allocations: 4 kB / 1.314 GB, free: 6.918 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002111/0.4057, allocations: 205.9 kB / 1.314 GB, free: 6.719 MB / 1.014 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4057, allocations: 0 / 1.314 GB, free: 6.719 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003974/0.4061, allocations: 67.81 kB / 1.314 GB, free: 6.652 MB / 1.014 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.001217/0.4073, allocations: 1.028 MB / 1.315 GB, free: 5.59 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004871/0.4078, allocations: 255.5 kB / 1.315 GB, free: 5.328 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4078, allocations: 4 kB / 1.315 GB, free: 5.324 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.408, allocations: 155.3 kB / 1.315 GB, free: 5.16 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.4083, allocations: 33.95 kB / 1.316 GB, free: 5.129 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004174/0.4125, allocations: 2.786 MB / 1.318 GB, free: 2.238 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004969/0.413, allocations: 0.7553 MB / 1.319 GB, free: 1.457 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 9.015e-05/0.4131, allocations: 25.47 kB / 1.319 GB, free: 1.43 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.4132, allocations: 75.34 kB / 1.319 GB, free: 1.355 MB / 1.014 GB Notification: Performance of SimCode: time 7.01e-07/0.4132, allocations: 0 / 1.319 GB, free: 1.355 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0496/0.4628, allocations: 5.412 MB / 1.324 GB, free: 12.06 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.623/9.085, allocations: 14.08 kB / 1.324 GB, free: 12.05 MB / 1.029 GB " [Timeout remaining time 291] (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_2/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: 16.14768151100725]