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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001884/0.001884, allocations: 104.6 kB / 18.84 MB, free: 3.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002237/0.002237, allocations: 189.7 kB / 22.1 MB, free: 4.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.637/1.637, allocations: 225.6 MB / 250.8 MB, free: 2.938 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.023/3.023, allocations: 495.8 MB / 0.7831 GB, free: 12.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/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: 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: Performance of FrontEnd - loaded program: time 0.002089/0.002089, allocations: 67.89 kB / 1.137 GB, free: 12.21 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.346/1.348, allocations: 173.6 MB / 1.307 GB, free: 33.79 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003479/1.351, allocations: 1.978 MB / 1.309 GB, free: 32.41 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00122/1.352, allocations: 0.725 MB / 1.309 GB, free: 31.91 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/1.353, allocations: 2.906 kB / 1.309 GB, free: 31.91 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002516/1.353, allocations: 85.03 kB / 1.309 GB, free: 31.89 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001231/1.353, allocations: 94.55 kB / 1.31 GB, free: 31.86 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000571/1.354, allocations: 187 kB / 1.31 GB, free: 31.76 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002914/1.354, allocations: 258 kB / 1.31 GB, free: 31.65 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/1.354, allocations: 54.94 kB / 1.31 GB, free: 31.62 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/1.354, allocations: 117.4 kB / 1.31 GB, free: 31.57 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/1.354, allocations: 163.1 kB / 1.31 GB, free: 31.52 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.034e-05/1.354, allocations: 22.44 kB / 1.31 GB, free: 31.52 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/1.355, allocations: 90.95 kB / 1.31 GB, free: 31.5 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.594e-05/1.355, allocations: 56.41 kB / 1.31 GB, free: 31.46 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.881e-05/1.355, allocations: 113 kB / 1.311 GB, free: 31.38 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003864/1.355, allocations: 305.2 kB / 1.311 GB, free: 31.26 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/1.355, allocations: 0 / 1.311 GB, free: 31.26 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.883e-06/1.355, allocations: 6.844 kB / 1.311 GB, free: 31.25 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.491e-05/1.355, allocations: 0 / 1.311 GB, free: 31.25 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.0008326/1.356, allocations: 0.5251 MB / 1.311 GB, free: 30.82 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/1.356, allocations: 8.469 kB / 1.311 GB, free: 30.82 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/1.356, allocations: 26.8 kB / 1.311 GB, free: 30.8 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005139/1.357, allocations: 247.9 kB / 1.312 GB, free: 30.61 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/1.357, allocations: 12.25 kB / 1.312 GB, free: 30.61 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.162e-05/1.357, allocations: 12.5 kB / 1.312 GB, free: 30.61 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004246/1.357, allocations: 225.1 kB / 1.312 GB, free: 30.48 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/1.357, allocations: 0 / 1.312 GB, free: 30.48 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/1.357, allocations: 10.69 kB / 1.312 GB, free: 30.47 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/1.357, allocations: 2.875 kB / 1.312 GB, free: 30.47 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/1.357, allocations: 128.7 kB / 1.312 GB, free: 30.43 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007688/1.358, allocations: 0.652 MB / 1.313 GB, free: 29.91 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/1.359, allocations: 156.1 kB / 1.313 GB, free: 29.84 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/1.359, allocations: 91.53 kB / 1.313 GB, free: 29.81 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/1.359, allocations: 4 kB / 1.313 GB, free: 29.81 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/1.359, allocations: 175.3 kB / 1.313 GB, free: 29.7 MB / 1.061 GB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/1.359, allocations: 0 / 1.313 GB, free: 29.7 MB / 1.061 GB Notification: Performance of matching and sorting (n=15): time 0.0006727/1.36, allocations: 367.8 kB / 1.313 GB, free: 29.56 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/1.36, allocations: 142 kB / 1.314 GB, free: 29.4 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/1.36, allocations: 284.6 kB / 1.314 GB, free: 29.23 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/1.36, allocations: 28.94 kB / 1.314 GB, free: 29.2 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/1.36, allocations: 159.2 kB / 1.314 GB, free: 29.06 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.867e-05/1.36, allocations: 40.22 kB / 1.314 GB, free: 29.03 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.366e-05/1.36, allocations: 49.16 kB / 1.314 GB, free: 29 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001127/1.36, allocations: 341.7 kB / 1.314 GB, free: 28.67 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/1.36, allocations: 83.41 kB / 1.314 GB, free: 28.65 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/1.361, allocations: 136.7 kB / 1.315 GB, free: 28.57 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/1.361, allocations: 247.3 kB / 1.315 GB, free: 28.42 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/1.361, allocations: 0 / 1.315 GB, free: 28.42 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004955/1.362, allocations: 344.5 kB / 1.315 GB, free: 28.28 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.05e-05/1.362, allocations: 39.02 kB / 1.315 GB, free: 28.24 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/1.362, allocations: 2.938 kB / 1.315 GB, free: 28.24 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.448e-05/1.362, allocations: 0 / 1.315 GB, free: 28.24 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/1.362, allocations: 25.84 kB / 1.315 GB, free: 28.24 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/1.362, allocations: 2.875 kB / 1.315 GB, free: 28.24 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/1.362, allocations: 23.88 kB / 1.315 GB, free: 28.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.012e-05/1.362, allocations: 9.812 kB / 1.315 GB, free: 28.22 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.000171/1.362, allocations: 197 kB / 1.315 GB, free: 28.05 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.601e-05/1.362, allocations: 23.58 kB / 1.316 GB, free: 28.04 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.933e-05/1.362, allocations: 30.08 kB / 1.316 GB, free: 28.02 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/1.362, allocations: 2.812 kB / 1.316 GB, free: 28.02 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/1.362, allocations: 3.375 kB / 1.316 GB, free: 28.02 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/1.362, allocations: 7.984 kB / 1.316 GB, free: 28.02 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002659/1.362, allocations: 261.4 kB / 1.316 GB, free: 27.81 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/1.362, allocations: 0 / 1.316 GB, free: 27.81 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/1.363, allocations: 18.55 kB / 1.316 GB, free: 27.81 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/1.363, allocations: 2.75 kB / 1.316 GB, free: 27.81 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/1.363, allocations: 2.781 kB / 1.316 GB, free: 27.81 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/1.363, allocations: 0 / 1.316 GB, free: 27.81 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/1.363, allocations: 0 / 1.316 GB, free: 27.81 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007333/1.363, allocations: 479.9 kB / 1.316 GB, free: 27.59 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.473e-05/1.363, allocations: 21.16 kB / 1.316 GB, free: 27.57 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.229e-05/1.363, allocations: 13.19 kB / 1.316 GB, free: 27.57 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.523e-05/1.363, allocations: 15.19 kB / 1.316 GB, free: 27.56 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/1.364, allocations: 29.98 kB / 1.316 GB, free: 27.55 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-05/1.364, allocations: 5.25 kB / 1.316 GB, free: 27.55 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001828/1.364, allocations: 202.9 kB / 1.317 GB, free: 27.45 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.364, allocations: 4.062 kB / 1.317 GB, free: 27.45 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003001/1.364, allocations: 61.75 kB / 1.317 GB, free: 27.43 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.0002107/1.364, allocations: 125.3 kB / 1.317 GB, free: 27.34 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005008/1.365, allocations: 259.4 kB / 1.317 GB, free: 27.22 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/1.365, allocations: 2.594 kB / 1.317 GB, free: 27.22 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/1.365, allocations: 159.2 kB / 1.317 GB, free: 27.13 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/1.365, allocations: 29.7 kB / 1.317 GB, free: 27.12 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/1.366, allocations: 484.9 kB / 1.318 GB, free: 26.85 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/1.367, allocations: 0.75 MB / 1.318 GB, free: 26.15 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.486e-05/1.367, allocations: 16.97 kB / 1.318 GB, free: 26.14 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.629e-05/1.367, allocations: 18.95 kB / 1.318 GB, free: 26.14 MB / 1.061 GB Notification: Performance of SimCode: time 5.11e-07/1.367, allocations: 0 / 1.318 GB, free: 26.14 MB / 1.061 GB Notification: Performance of Templates: time 0.007871/1.375, allocations: 2.934 MB / 1.321 GB, free: 25.91 MB / 1.061 GB " [Timeout remaining time 299] 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/jenkins/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: 10.742480646818876]