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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005541/0.005541, allocations: 99.81 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 192.2 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.417/2.417, allocations: 469.4 MB / 0.7422 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.91 kB / 1.064 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6817/0.683, allocations: 159.1 MB / 1.22 GB, free: 2.238 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003208/0.6863, allocations: 1.961 MB / 1.222 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.6876, allocations: 0.6983 MB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.6878, allocations: 7.938 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002279/0.6881, allocations: 87.62 kB / 1.222 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001565/0.6882, allocations: 91.62 kB / 1.222 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005738/0.6888, allocations: 183 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003263/0.6891, allocations: 271.4 kB / 1.223 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.6893, allocations: 61.89 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.6895, allocations: 119.6 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.6897, allocations: 151.5 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.131e-05/0.6898, allocations: 20 kB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.6899, allocations: 91.92 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.231e-05/0.69, allocations: 59.72 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.6901, allocations: 107.3 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004063/0.6905, allocations: 318.4 kB / 1.224 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.6905, allocations: 0 / 1.224 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.352e-06/0.6905, allocations: 0 / 1.224 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.6906, allocations: 0 / 1.224 GB, free: 14.03 MB / 0.9512 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.0008975/0.6915, allocations: 0.5933 MB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.6915, allocations: 8.625 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.345e-05/0.6916, allocations: 50.73 kB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.631e-05/0.6916, allocations: 28.8 kB / 1.224 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000524/0.6922, allocations: 303 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.6922, allocations: 8.375 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.6922, allocations: 16.38 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000387/0.6926, allocations: 239 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.6927, allocations: 0 / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/0.6927, allocations: 8 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.6927, allocations: 4 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002493/0.693, allocations: 132.3 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008101/0.6938, allocations: 0.6925 MB / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003507/0.6941, allocations: 174.5 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.6943, allocations: 100.8 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.6943, allocations: 0 / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.6946, allocations: 164.1 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.6946, allocations: 0 / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15): time 0.0006594/0.6953, allocations: 379.1 kB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.242e-05/0.6954, allocations: 136.5 kB / 1.227 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.6956, allocations: 282.7 kB / 1.227 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.6957, allocations: 29.7 kB / 1.227 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.6958, allocations: 160.3 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.437e-05/0.6958, allocations: 47.61 kB / 1.227 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.403e-05/0.6959, allocations: 41.66 kB / 1.227 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.696, allocations: 346.8 kB / 1.228 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.6962, allocations: 83.97 kB / 1.228 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.6964, allocations: 133.1 kB / 1.228 GB, free: 9.621 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003229/0.6967, allocations: 244.9 kB / 1.228 GB, free: 9.359 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.6967, allocations: 0 / 1.228 GB, free: 9.359 MB / 0.9512 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004796/0.6972, allocations: 340.7 kB / 1.228 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.6973, allocations: 33.7 kB / 1.228 GB, free: 8.977 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.6973, allocations: 0 / 1.228 GB, free: 8.977 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.6973, allocations: 8.094 kB / 1.228 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.6974, allocations: 23.98 kB / 1.228 GB, free: 8.945 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.6974, allocations: 4 kB / 1.228 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.6976, allocations: 19.88 kB / 1.228 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.6976, allocations: 12 kB / 1.228 GB, free: 8.91 MB / 0.9512 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.0001562/0.6978, allocations: 193.8 kB / 1.229 GB, free: 8.707 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.354e-05/0.6978, allocations: 27.86 kB / 1.229 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.978e-05/0.6979, allocations: 29.83 kB / 1.229 GB, free: 8.648 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.6979, allocations: 0 / 1.229 GB, free: 8.648 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.6979, allocations: 3.938 kB / 1.229 GB, free: 8.645 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.6979, allocations: 4 kB / 1.229 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.6981, allocations: 289.4 kB / 1.229 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.6981, allocations: 0 / 1.229 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.6983, allocations: 19.98 kB / 1.229 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.6983, allocations: 0 / 1.229 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.6983, allocations: 4 kB / 1.229 GB, free: 8.285 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.6983, allocations: 3.938 kB / 1.229 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.6983, allocations: 7.984 kB / 1.229 GB, free: 8.273 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006797/0.699, allocations: 470.4 kB / 1.229 GB, free: 7.789 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.254e-05/0.6991, allocations: 101 kB / 1.23 GB, free: 7.672 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.044e-05/0.6991, allocations: 4 kB / 1.23 GB, free: 7.668 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.6992, allocations: 15.98 kB / 1.23 GB, free: 7.652 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.219e-05/0.6993, allocations: 32.02 kB / 1.23 GB, free: 7.621 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.6993, allocations: 4 kB / 1.23 GB, free: 7.617 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001701/0.6995, allocations: 209.9 kB / 1.23 GB, free: 7.414 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6995, allocations: 0 / 1.23 GB, free: 7.414 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002736/0.6998, allocations: 59.88 kB / 1.23 GB, free: 7.355 MB / 0.9512 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.0009853/0.7008, allocations: 1.029 MB / 1.231 GB, free: 6.293 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004445/0.7012, allocations: 291.2 kB / 1.231 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.7012, allocations: 0 / 1.231 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.7015, allocations: 183.4 kB / 1.231 GB, free: 5.805 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.7018, allocations: 35.92 kB / 1.231 GB, free: 5.77 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/0.705, allocations: 2.774 MB / 1.234 GB, free: 2.891 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.7053, allocations: 0.7553 MB / 1.235 GB, free: 2.109 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.347e-05/0.7054, allocations: 21.55 kB / 1.235 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.995e-05/0.7055, allocations: 79.28 kB / 1.235 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of SimCode: time 3.11e-07/0.7055, allocations: 0 / 1.235 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02139/0.7269, allocations: 5.414 MB / 1.24 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.26/7.987, allocations: 10.67 kB / 1.24 GB, free: 12.7 MB / 0.9669 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv","/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) Reference file matches