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.001621/0.001621, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002025/0.002025, allocations: 217.6 kB / 23.01 MB, free: 4.609 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.509/1.509, allocations: 230.6 MB / 256.8 MB, free: 8.023 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.344/3.344, allocations: 0.49 GB / 0.7958 GB, free: 33.34 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: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [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.002229/0.002229, allocations: 79.83 kB / 1.155 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4059/0.4081, allocations: 176.1 MB / 1.327 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003662/0.4118, allocations: 2.009 MB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00147/0.4132, allocations: 0.7441 MB / 1.33 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.4133, allocations: 7.938 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.4136, allocations: 83.64 kB / 1.33 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.4138, allocations: 99.61 kB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006451/0.4144, allocations: 185.6 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.4147, allocations: 259.4 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.4149, allocations: 42.19 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.4151, allocations: 135.6 kB / 1.331 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.4153, allocations: 151.5 kB / 1.331 GB, free: 13.75 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.4153, allocations: 24 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.4155, allocations: 87.94 kB / 1.331 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.976e-05/0.4156, allocations: 63.75 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.4157, allocations: 107.3 kB / 1.331 GB, free: 13.47 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004414/0.4162, allocations: 306.8 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.4162, allocations: 0 / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.944e-06/0.4162, allocations: 3.938 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.4162, allocations: 4 kB / 1.331 GB, free: 13.16 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.0009175/0.4171, allocations: 0.519 MB / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.4171, allocations: 8.031 kB / 1.332 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.609e-05/0.4172, allocations: 28.75 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005174/0.4177, allocations: 249.1 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.064e-05/0.4177, allocations: 16.38 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.859e-05/0.4178, allocations: 12.38 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000435/0.4182, allocations: 223.3 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.4182, allocations: 3.938 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.4182, allocations: 8 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.4183, allocations: 3.938 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00027/0.4185, allocations: 129.3 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009366/0.4195, allocations: 0.6488 MB / 1.333 GB, free: 11.19 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.4198, allocations: 150.5 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.42, allocations: 88.95 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.42, allocations: 8 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/0.4203, allocations: 171 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.313e-06/0.4203, allocations: 0 / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0007194/0.421, allocations: 378.9 kB / 1.334 GB, free: 10.37 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.4211, allocations: 132.5 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.4214, allocations: 281.9 kB / 1.334 GB, free: 9.926 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.4215, allocations: 33.7 kB / 1.334 GB, free: 9.887 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.4216, allocations: 156.3 kB / 1.334 GB, free: 9.727 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.177e-05/0.4217, allocations: 47.62 kB / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.867e-05/0.4218, allocations: 37.7 kB / 1.335 GB, free: 9.637 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001882/0.422, allocations: 338.8 kB / 1.335 GB, free: 9.297 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.4221, allocations: 91.89 kB / 1.335 GB, free: 9.207 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.4223, allocations: 133.1 kB / 1.335 GB, free: 9.059 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.4227, allocations: 240.8 kB / 1.335 GB, free: 8.801 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.4227, allocations: 4.031 kB / 1.335 GB, free: 8.797 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005378/0.4232, allocations: 335.2 kB / 1.336 GB, free: 8.457 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.405e-05/0.4233, allocations: 37.69 kB / 1.336 GB, free: 8.414 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.4233, allocations: 0 / 1.336 GB, free: 8.414 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.4233, allocations: 7.938 kB / 1.336 GB, free: 8.406 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.4234, allocations: 23.98 kB / 1.336 GB, free: 8.383 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.4235, allocations: 0 / 1.336 GB, free: 8.383 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.4236, allocations: 35.86 kB / 1.336 GB, free: 8.348 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.4236, allocations: 8 kB / 1.336 GB, free: 8.34 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.0002091/0.4238, allocations: 196.9 kB / 1.336 GB, free: 8.133 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.846e-05/0.4238, allocations: 27.86 kB / 1.336 GB, free: 8.105 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.808e-05/0.4239, allocations: 25.77 kB / 1.336 GB, free: 8.078 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.4239, allocations: 0 / 1.336 GB, free: 8.078 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4239, allocations: 96 / 1.336 GB, free: 8.078 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.4239, allocations: 3.938 kB / 1.336 GB, free: 8.074 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.4242, allocations: 268.5 kB / 1.336 GB, free: 7.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4242, allocations: 0 / 1.336 GB, free: 7.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.4243, allocations: 19.98 kB / 1.336 GB, free: 7.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.4243, allocations: 0 / 1.336 GB, free: 7.75 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.4243, allocations: 4 kB / 1.336 GB, free: 7.746 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.4243, allocations: 0 / 1.336 GB, free: 7.746 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4243, allocations: 0 / 1.336 GB, free: 7.746 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007827/0.4251, allocations: 484.7 kB / 1.337 GB, free: 7.25 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.4252, allocations: 23.88 kB / 1.337 GB, free: 7.227 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.454e-05/0.4252, allocations: 12 kB / 1.337 GB, free: 7.215 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.4253, allocations: 11.98 kB / 1.337 GB, free: 7.203 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.364e-05/0.4254, allocations: 23.95 kB / 1.337 GB, free: 7.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/0.4254, allocations: 4 kB / 1.337 GB, free: 7.176 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002339/0.4256, allocations: 205.2 kB / 1.337 GB, free: 6.977 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4256, allocations: 0 / 1.337 GB, free: 6.977 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002862/0.4259, allocations: 59.95 kB / 1.337 GB, free: 6.918 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.0002204/0.4261, allocations: 136.4 kB / 1.337 GB, free: 6.777 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004995/0.4266, allocations: 255.2 kB / 1.337 GB, free: 6.516 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4267, allocations: 0 / 1.337 GB, free: 6.516 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002378/0.4269, allocations: 155.5 kB / 1.338 GB, free: 6.352 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.4272, allocations: 42.03 kB / 1.338 GB, free: 6.312 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009232/0.4281, allocations: 485.9 kB / 1.338 GB, free: 5.801 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004671/0.4286, allocations: 0.7553 MB / 1.339 GB, free: 5.02 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.573e-05/0.4286, allocations: 23.42 kB / 1.339 GB, free: 5 MB / 1.029 GB Notification: Performance of SimCode: time 3.4e-07/0.4286, allocations: 0 / 1.339 GB, free: 5 MB / 1.029 GB Notification: Performance of Templates: time 0.005788/0.4344, allocations: 3.009 MB / 1.342 GB, free: 2 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] 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: 12.06698513799347]