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.001393/0.001393, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00175/0.00175, allocations: 214.5 kB / 22.25 MB, free: 5.262 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.534/1.534, allocations: 230.6 MB / 256 MB, free: 7.789 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.3/3.3, allocations: 0.5107 GB / 0.8158 GB, free: 17.77 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.002091/0.002091, allocations: 74.58 kB / 1.186 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3655, allocations: 181.9 MB / 1.363 GB, free: 14.03 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003588/0.3691, allocations: 1.935 MB / 1.365 GB, free: 12.08 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001486/0.3706, allocations: 0.6974 MB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.3707, allocations: 7.938 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002941/0.371, allocations: 87.58 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001563/0.3711, allocations: 95.56 kB / 1.366 GB, free: 11.19 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007112/0.3719, allocations: 186.8 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.3722, allocations: 263.4 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.3724, allocations: 50.16 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.3726, allocations: 115.7 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002805/0.3729, allocations: 147.5 kB / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.154e-05/0.373, allocations: 20 kB / 1.367 GB, free: 10.42 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.3731, allocations: 87.88 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.3732, allocations: 67.81 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.3734, allocations: 75.48 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004393/0.3738, allocations: 310.8 kB / 1.367 GB, free: 9.891 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3738, allocations: 4 kB / 1.367 GB, free: 9.887 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3738, allocations: 4 kB / 1.367 GB, free: 9.883 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.3738, allocations: 0 / 1.367 GB, free: 9.883 MB / 1.061 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.0008991/0.3747, allocations: 0.5119 MB / 1.368 GB, free: 9.336 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.3748, allocations: 16.03 kB / 1.368 GB, free: 9.32 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.902e-05/0.3748, allocations: 46.73 kB / 1.368 GB, free: 9.266 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.352e-05/0.3749, allocations: 28.8 kB / 1.368 GB, free: 9.238 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006055/0.3755, allocations: 249.2 kB / 1.368 GB, free: 8.973 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.3755, allocations: 8.375 kB / 1.368 GB, free: 8.965 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.673e-05/0.3755, allocations: 16.38 kB / 1.368 GB, free: 8.949 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.376, allocations: 308.2 kB / 1.369 GB, free: 8.605 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3761, allocations: 0 / 1.369 GB, free: 8.605 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.3761, allocations: 11.94 kB / 1.369 GB, free: 8.594 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3761, allocations: 4 kB / 1.369 GB, free: 8.59 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000304/0.3764, allocations: 162 kB / 1.369 GB, free: 8.426 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3774, allocations: 0.6136 MB / 1.369 GB, free: 7.762 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/0.3778, allocations: 188.2 kB / 1.369 GB, free: 7.562 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.378, allocations: 118.7 kB / 1.37 GB, free: 7.438 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.3781, allocations: 0 / 1.37 GB, free: 7.438 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003891/0.3785, allocations: 198.7 kB / 1.37 GB, free: 7.219 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.3785, allocations: 0 / 1.37 GB, free: 7.219 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0008716/0.3793, allocations: 438.5 kB / 1.37 GB, free: 6.766 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.3794, allocations: 140.5 kB / 1.37 GB, free: 6.598 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/0.3798, allocations: 285.8 kB / 1.371 GB, free: 6.305 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.3798, allocations: 25.7 kB / 1.371 GB, free: 6.273 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.3799, allocations: 160.3 kB / 1.371 GB, free: 6.113 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.003e-05/0.38, allocations: 43.73 kB / 1.371 GB, free: 6.07 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.766e-05/0.3801, allocations: 45.64 kB / 1.371 GB, free: 6.02 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000199/0.3803, allocations: 342.8 kB / 1.371 GB, free: 5.676 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.3805, allocations: 113.7 kB / 1.371 GB, free: 5.559 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.3808, allocations: 218.3 kB / 1.372 GB, free: 5.309 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003923/0.3812, allocations: 248.7 kB / 1.372 GB, free: 5.043 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3812, allocations: 0 / 1.372 GB, free: 5.043 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006131/0.3818, allocations: 376.7 kB / 1.372 GB, free: 4.656 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.913e-05/0.3819, allocations: 41.69 kB / 1.372 GB, free: 4.609 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.3819, allocations: 0 / 1.372 GB, free: 4.609 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.3819, allocations: 8.094 kB / 1.372 GB, free: 4.602 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.382, allocations: 19.98 kB / 1.372 GB, free: 4.582 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.382, allocations: 11.88 kB / 1.372 GB, free: 4.57 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.3822, allocations: 23.88 kB / 1.372 GB, free: 4.547 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.3822, allocations: 8 kB / 1.372 GB, free: 4.539 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.0002312/0.3824, allocations: 191.4 kB / 1.372 GB, free: 4.336 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.428e-05/0.3825, allocations: 31.84 kB / 1.372 GB, free: 4.305 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.632e-05/0.3825, allocations: 29.77 kB / 1.372 GB, free: 4.273 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.3825, allocations: 4 kB / 1.372 GB, free: 4.27 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3826, allocations: 4 kB / 1.372 GB, free: 4.266 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3826, allocations: 0 / 1.372 GB, free: 4.266 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003073/0.3829, allocations: 236.6 kB / 1.373 GB, free: 3.992 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.3829, allocations: 0 / 1.373 GB, free: 3.992 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.383, allocations: 19.92 kB / 1.373 GB, free: 3.973 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.383, allocations: 0 / 1.373 GB, free: 3.973 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.383, allocations: 8 kB / 1.373 GB, free: 3.965 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.383, allocations: 0 / 1.373 GB, free: 3.965 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.383, allocations: 3.984 kB / 1.373 GB, free: 3.961 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009993/0.384, allocations: 0.5275 MB / 1.373 GB, free: 3.398 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.833e-05/0.3841, allocations: 27.84 kB / 1.373 GB, free: 3.371 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.107e-05/0.3841, allocations: 4 kB / 1.373 GB, free: 3.367 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.3842, allocations: 15.98 kB / 1.373 GB, free: 3.352 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.3843, allocations: 27.89 kB / 1.373 GB, free: 3.324 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.195e-05/0.3843, allocations: 7.984 kB / 1.373 GB, free: 3.316 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002241/0.3846, allocations: 201.2 kB / 1.374 GB, free: 3.121 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3846, allocations: 0 / 1.374 GB, free: 3.121 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003057/0.3849, allocations: 63.94 kB / 1.374 GB, free: 3.059 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.001314/0.3862, allocations: 1.093 MB / 1.375 GB, free: 1.918 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005951/0.3868, allocations: 327.7 kB / 1.375 GB, free: 1.578 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3868, allocations: 8.125 kB / 1.375 GB, free: 1.57 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.3871, allocations: 193 kB / 1.375 GB, free: 1.363 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.3874, allocations: 32.48 kB / 1.375 GB, free: 1.332 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004124/0.3915, allocations: 2.923 MB / 1.378 GB, free: 14.27 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001814/0.3917, allocations: 145.7 kB / 1.378 GB, free: 14.12 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 9.892e-05/0.3918, allocations: 21.47 kB / 1.378 GB, free: 14.1 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.3919, allocations: 71.42 kB / 1.378 GB, free: 14.03 MB / 1.076 GB Notification: Performance of SimCode: time 6.51e-07/0.3919, allocations: 0 / 1.378 GB, free: 14.03 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03774/0.4297, allocations: 6.119 MB / 1.384 GB, free: 8.074 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.1, allocations: 10.39 kB / 1.384 GB, free: 8.07 MB / 1.076 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: 18.986960143316537]