Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001444/0.001444, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001799/0.001799, allocations: 218.4 kB / 22.25 MB, free: 5.125 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.497/1.497, allocations: 230.6 MB / 256 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.384/3.384, allocations: 0.49 GB / 0.7951 GB, free: 33.3 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_12_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.002139/0.002139, allocations: 72.75 kB / 1.154 GB, free: 25.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3889, allocations: 176.1 MB / 1.326 GB, free: 2.004 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.005005/0.3939, allocations: 2.006 MB / 1.328 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002177/0.3961, allocations: 0.7596 MB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002612/0.3963, allocations: 7.938 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.3967, allocations: 71.72 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.397, allocations: 91.56 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009509/0.3979, allocations: 197.7 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005677/0.3985, allocations: 259.5 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.3987, allocations: 50.17 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002946/0.399, allocations: 119.6 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003034/0.3993, allocations: 159.5 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.604e-05/0.3994, allocations: 20 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.3996, allocations: 91.92 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.3997, allocations: 67.77 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.3999, allocations: 103.3 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006126/0.4005, allocations: 306.8 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.4005, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.352e-06/0.4005, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.582e-05/0.4005, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 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.001311/0.4018, allocations: 0.518 MB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.4019, allocations: 11.97 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001049/0.402, allocations: 46.73 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.4021, allocations: 32.75 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007376/0.4028, allocations: 245.2 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.4028, allocations: 8.375 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.81e-05/0.4029, allocations: 24.38 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006402/0.4035, allocations: 219.1 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.4035, allocations: 3.984 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/0.4036, allocations: 8 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.4036, allocations: 7.938 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000309/0.4039, allocations: 133.3 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.4052, allocations: 0.6448 MB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006204/0.4058, allocations: 154.7 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002734/0.4061, allocations: 88.83 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.4061, allocations: 0 / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004408/0.4066, allocations: 173.1 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 2.364e-06/0.4066, allocations: 4 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.001084/0.4076, allocations: 380.7 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.4078, allocations: 136.5 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004754/0.4083, allocations: 277.9 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.4083, allocations: 29.7 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.4085, allocations: 156.3 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.073e-05/0.4085, allocations: 47.62 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.4086, allocations: 45.8 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002268/0.4089, allocations: 346.7 kB / 1.334 GB, free: 9.77 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/0.4091, allocations: 79.95 kB / 1.334 GB, free: 9.691 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.4095, allocations: 135 kB / 1.334 GB, free: 9.543 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005529/0.41, allocations: 240.5 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.41, allocations: 0 / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0009004/0.4109, allocations: 336.9 kB / 1.334 GB, free: 8.945 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/0.411, allocations: 43.66 kB / 1.334 GB, free: 8.898 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.411, allocations: 4 kB / 1.334 GB, free: 8.895 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.411, allocations: 0 / 1.334 GB, free: 8.895 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.4112, allocations: 31.86 kB / 1.334 GB, free: 8.863 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.4112, allocations: 4 kB / 1.334 GB, free: 8.859 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/0.4114, allocations: 27.83 kB / 1.335 GB, free: 8.832 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.4114, allocations: 4 kB / 1.335 GB, free: 8.828 MB / 1.029 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.0002906/0.4117, allocations: 204.5 kB / 1.335 GB, free: 8.613 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.033e-05/0.4118, allocations: 23.86 kB / 1.335 GB, free: 8.59 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.229e-05/0.4119, allocations: 25.77 kB / 1.335 GB, free: 8.562 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.4119, allocations: 4 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.4119, allocations: 0 / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4119, allocations: 0 / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004284/0.4123, allocations: 260.5 kB / 1.335 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4123, allocations: 0 / 1.335 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.4125, allocations: 15.98 kB / 1.335 GB, free: 8.246 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.4125, allocations: 0 / 1.335 GB, free: 8.246 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.399e-05/0.4125, allocations: 12 kB / 1.335 GB, free: 8.234 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.4125, allocations: 0 / 1.335 GB, free: 8.234 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4125, allocations: 0 / 1.335 GB, free: 8.234 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.4136, allocations: 480.5 kB / 1.336 GB, free: 7.742 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.209e-05/0.4136, allocations: 23.89 kB / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.315e-05/0.4137, allocations: 4 kB / 1.336 GB, free: 7.715 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.4139, allocations: 20.05 kB / 1.336 GB, free: 7.695 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.414, allocations: 23.95 kB / 1.336 GB, free: 7.672 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-05/0.414, allocations: 4 kB / 1.336 GB, free: 7.668 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003447/0.4143, allocations: 205.2 kB / 1.336 GB, free: 7.465 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4143, allocations: 0 / 1.336 GB, free: 7.465 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005248/0.4149, allocations: 63.83 kB / 1.336 GB, free: 7.402 MB / 1.029 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.001769/0.4166, allocations: 1.025 MB / 1.337 GB, free: 6.344 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007313/0.4174, allocations: 264.5 kB / 1.337 GB, free: 6.074 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4174, allocations: 256 / 1.337 GB, free: 6.074 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.4177, allocations: 163.2 kB / 1.337 GB, free: 5.902 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.4182, allocations: 32.48 kB / 1.337 GB, free: 5.871 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/0.4232, allocations: 2.748 MB / 1.34 GB, free: 3.012 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004701/0.4237, allocations: 0.7553 MB / 1.341 GB, free: 2.23 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.408e-05/0.4237, allocations: 21.47 kB / 1.341 GB, free: 2.211 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.4239, allocations: 75.41 kB / 1.341 GB, free: 2.137 MB / 1.029 GB Notification: Performance of SimCode: time 9.02e-07/0.4239, allocations: 0 / 1.341 GB, free: 2.137 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04319/0.4671, allocations: 5.6 MB / 1.346 GB, free: 12.7 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/12.02, allocations: 8.062 kB / 1.346 GB, free: 12.69 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.07224471005611]