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.001576/0.001576, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001784/0.001784, allocations: 209.5 kB / 22.99 MB, free: 4.957 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.462/1.462, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.254/3.254, allocations: 0.49 GB / 0.7959 GB, free: 35.55 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.002117/0.002117, allocations: 67.5 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4084/0.4106, allocations: 176.1 MB / 1.327 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003772/0.4143, allocations: 1.932 MB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001492/0.4158, allocations: 0.7012 MB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.4159, allocations: 4 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002502/0.4162, allocations: 87.64 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.4164, allocations: 95.5 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005765/0.417, allocations: 187.4 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003375/0.4173, allocations: 263.4 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.4175, allocations: 52.7 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.4176, allocations: 111.7 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.4179, allocations: 171.4 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.245e-05/0.4179, allocations: 20 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.418, allocations: 87.94 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.684e-05/0.4181, allocations: 51.83 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.4182, allocations: 91.47 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004619/0.4187, allocations: 310.8 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4187, allocations: 0 / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.868e-06/0.4187, allocations: 4 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.654e-06/0.4187, allocations: 0 / 1.331 GB, free: 12.82 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.001026/0.4198, allocations: 0.5063 MB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.4198, allocations: 16.03 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.322e-05/0.4199, allocations: 28.75 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000585/0.4205, allocations: 245.2 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.4205, allocations: 16.38 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/0.4205, allocations: 16.36 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005511/0.4211, allocations: 312.3 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.4211, allocations: 0 / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.4211, allocations: 8 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.4211, allocations: 4 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.4215, allocations: 162 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009629/0.4224, allocations: 0.5713 MB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000469/0.4229, allocations: 184.2 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.4231, allocations: 126.6 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.4231, allocations: 0 / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003395/0.4234, allocations: 198.8 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.4234, allocations: 3.938 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=15): time 0.0008264/0.4243, allocations: 434.5 kB / 1.334 GB, free: 9.805 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.4244, allocations: 140.5 kB / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.4247, allocations: 265.9 kB / 1.334 GB, free: 9.367 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.4247, allocations: 33.7 kB / 1.334 GB, free: 9.328 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.4249, allocations: 160.3 kB / 1.334 GB, free: 9.164 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.534e-05/0.425, allocations: 47.58 kB / 1.334 GB, free: 9.117 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.791e-05/0.4251, allocations: 37.72 kB / 1.334 GB, free: 9.074 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002146/0.4253, allocations: 330.9 kB / 1.335 GB, free: 8.742 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000265/0.4255, allocations: 125.6 kB / 1.335 GB, free: 8.613 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/0.4258, allocations: 218.8 kB / 1.335 GB, free: 8.363 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003924/0.4262, allocations: 252.1 kB / 1.335 GB, free: 8.094 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4262, allocations: 0 / 1.335 GB, free: 8.094 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000586/0.4268, allocations: 377.7 kB / 1.336 GB, free: 7.707 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.288e-05/0.4268, allocations: 41.69 kB / 1.336 GB, free: 7.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.4269, allocations: 0 / 1.336 GB, free: 7.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.4269, allocations: 0 / 1.336 GB, free: 7.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.427, allocations: 32.02 kB / 1.336 GB, free: 7.629 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.427, allocations: 4 kB / 1.336 GB, free: 7.625 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.4271, allocations: 19.94 kB / 1.336 GB, free: 7.605 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.4272, allocations: 8 kB / 1.336 GB, free: 7.598 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.0002134/0.4274, allocations: 198 kB / 1.336 GB, free: 7.391 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.184e-05/0.4274, allocations: 23.86 kB / 1.336 GB, free: 7.367 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.717e-05/0.4275, allocations: 33.77 kB / 1.336 GB, free: 7.332 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.4275, allocations: 0 / 1.336 GB, free: 7.332 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4275, allocations: 7.938 kB / 1.336 GB, free: 7.324 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4275, allocations: 0 / 1.336 GB, free: 7.324 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002448/0.4277, allocations: 205.1 kB / 1.336 GB, free: 7.094 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.4277, allocations: 0 / 1.336 GB, free: 7.094 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.4278, allocations: 19.92 kB / 1.336 GB, free: 7.074 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.4278, allocations: 0 / 1.336 GB, free: 7.074 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.094e-05/0.4279, allocations: 4 kB / 1.336 GB, free: 7.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.4279, allocations: 0 / 1.336 GB, free: 7.07 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4279, allocations: 0 / 1.336 GB, free: 7.07 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008536/0.4287, allocations: 0.5424 MB / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.845e-05/0.4288, allocations: 19.89 kB / 1.337 GB, free: 6.473 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.583e-05/0.4288, allocations: 8 kB / 1.337 GB, free: 6.465 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.4289, allocations: 11.98 kB / 1.337 GB, free: 6.453 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.176e-05/0.429, allocations: 23.95 kB / 1.337 GB, free: 6.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/0.429, allocations: 8 kB / 1.337 GB, free: 6.422 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001936/0.4292, allocations: 193.2 kB / 1.337 GB, free: 6.234 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4292, allocations: 0 / 1.337 GB, free: 6.234 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002974/0.4295, allocations: 55.89 kB / 1.337 GB, free: 6.18 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.000227/0.4297, allocations: 135.2 kB / 1.337 GB, free: 6.039 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006747/0.4304, allocations: 326.6 kB / 1.338 GB, free: 5.695 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4304, allocations: 4 kB / 1.338 GB, free: 5.691 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002825/0.4307, allocations: 185 kB / 1.338 GB, free: 5.492 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.4311, allocations: 44.52 kB / 1.338 GB, free: 5.453 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009514/0.4321, allocations: 482 kB / 1.338 GB, free: 4.945 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001571/0.4322, allocations: 139 kB / 1.338 GB, free: 4.797 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.744e-05/0.4323, allocations: 17.42 kB / 1.338 GB, free: 4.781 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.959e-05/0.4324, allocations: 23.44 kB / 1.338 GB, free: 4.758 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.4324, allocations: 0 / 1.338 GB, free: 4.758 MB / 1.029 GB Notification: Performance of Templates: time 0.007504/0.4399, allocations: 3.119 MB / 1.341 GB, free: 1.676 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 -s gbode -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: 9.162805676998687]