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.002083/0.002083, allocations: 77.7 kB / 19.76 MB, free: 2.035 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.00238/0.00238, allocations: 157.8 kB / 23.01 MB, free: 4.945 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.618/1.618, allocations: 177.2 MB / 203.4 MB, free: 8.938 MB / 190.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 2.893/2.893, allocations: 377.9 MB / 0.6228 GB, free: 12.59 MB / 0.5919 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.002127/0.002127, allocations: 71.89 kB / 0.9819 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.251/1.253, allocations: 176.1 MB / 1.154 GB, free: 33.34 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003338/1.256, allocations: 1.917 MB / 1.156 GB, free: 32.04 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001676/1.258, allocations: 0.7068 MB / 1.156 GB, free: 31.57 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/1.258, allocations: 2.938 kB / 1.156 GB, free: 31.57 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0002727/1.258, allocations: 86.45 kB / 1.157 GB, free: 31.55 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.000138/1.258, allocations: 94.5 kB / 1.157 GB, free: 31.52 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.000633/1.259, allocations: 183.6 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0003641/1.259, allocations: 260.1 kB / 1.157 GB, free: 31.3 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/1.26, allocations: 48.16 kB / 1.157 GB, free: 31.28 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/1.26, allocations: 116 kB / 1.157 GB, free: 31.23 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002929/1.26, allocations: 145.6 kB / 1.157 GB, free: 31.2 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/1.26, allocations: 23.75 kB / 1.157 GB, free: 31.19 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001922/1.26, allocations: 92.09 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001195/1.26, allocations: 54.88 kB / 1.158 GB, free: 31.14 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001262/1.261, allocations: 85.89 kB / 1.158 GB, free: 31.09 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0005669/1.261, allocations: 312.7 kB / 1.158 GB, free: 30.96 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/1.261, allocations: 4 kB / 1.158 GB, free: 30.95 MB / 1.076 GB Notification: Performance of FrontEnd: time 3.537e-06/1.261, allocations: 0 / 1.158 GB, free: 30.95 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.612e-05/1.261, allocations: 2.625 kB / 1.158 GB, free: 30.95 MB / 1.076 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.00113/1.262, allocations: 0.5093 MB / 1.158 GB, free: 30.53 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 6.495e-05/1.262, allocations: 12.05 kB / 1.158 GB, free: 30.53 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.794e-05/1.262, allocations: 35.47 kB / 1.158 GB, free: 30.51 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006567/1.263, allocations: 247.3 kB / 1.159 GB, free: 30.32 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/1.263, allocations: 9.906 kB / 1.159 GB, free: 30.31 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/1.263, allocations: 12.91 kB / 1.159 GB, free: 30.31 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004826/1.264, allocations: 315.5 kB / 1.159 GB, free: 30.08 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/1.264, allocations: 2.781 kB / 1.159 GB, free: 30.08 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/1.264, allocations: 7.938 kB / 1.159 GB, free: 30.07 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/1.264, allocations: 5.688 kB / 1.159 GB, free: 30.07 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002898/1.264, allocations: 162.2 kB / 1.159 GB, free: 30 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009316/1.265, allocations: 0.5689 MB / 1.16 GB, free: 29.53 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003986/1.265, allocations: 186.8 kB / 1.16 GB, free: 29.43 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/1.266, allocations: 123.4 kB / 1.16 GB, free: 29.37 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/1.266, allocations: 7 kB / 1.16 GB, free: 29.36 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/1.266, allocations: 202.6 kB / 1.16 GB, free: 29.22 MB / 1.076 GB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/1.266, allocations: 0 / 1.16 GB, free: 29.22 MB / 1.076 GB Notification: Performance of matching and sorting (n=15): time 0.0008334/1.267, allocations: 447.2 kB / 1.161 GB, free: 29 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.663e-05/1.267, allocations: 134.3 kB / 1.161 GB, free: 28.85 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002771/1.267, allocations: 269.8 kB / 1.161 GB, free: 28.7 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/1.267, allocations: 28.61 kB / 1.161 GB, free: 28.67 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/1.267, allocations: 160.2 kB / 1.161 GB, free: 28.54 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.104e-05/1.267, allocations: 52.52 kB / 1.161 GB, free: 28.49 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.659e-05/1.267, allocations: 41.97 kB / 1.161 GB, free: 28.46 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001288/1.268, allocations: 331.4 kB / 1.162 GB, free: 28.14 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/1.268, allocations: 122.1 kB / 1.162 GB, free: 28.09 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/1.268, allocations: 221.9 kB / 1.162 GB, free: 27.91 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003381/1.268, allocations: 236.6 kB / 1.162 GB, free: 27.77 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/1.268, allocations: 10.91 kB / 1.162 GB, free: 27.76 MB / 1.076 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005485/1.269, allocations: 370.2 kB / 1.163 GB, free: 27.59 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 5.412e-05/1.269, allocations: 35.11 kB / 1.163 GB, free: 27.55 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/1.269, allocations: 2.781 kB / 1.163 GB, free: 27.55 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.501e-05/1.269, allocations: 0 / 1.163 GB, free: 27.55 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/1.269, allocations: 26.73 kB / 1.163 GB, free: 27.55 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/1.269, allocations: 10.84 kB / 1.163 GB, free: 27.54 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/1.269, allocations: 26.89 kB / 1.163 GB, free: 27.53 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/1.269, allocations: 9.25 kB / 1.163 GB, free: 27.53 MB / 1.076 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.0002059/1.269, allocations: 191.2 kB / 1.163 GB, free: 27.36 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.342e-05/1.269, allocations: 26.23 kB / 1.163 GB, free: 27.35 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.423e-05/1.269, allocations: 25.41 kB / 1.163 GB, free: 27.34 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/1.27, allocations: 0 / 1.163 GB, free: 27.34 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/1.27, allocations: 2.562 kB / 1.163 GB, free: 27.34 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/1.27, allocations: 0 / 1.163 GB, free: 27.34 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002061/1.27, allocations: 210.8 kB / 1.163 GB, free: 27.17 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/1.27, allocations: 4 kB / 1.163 GB, free: 27.16 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/1.27, allocations: 18.89 kB / 1.163 GB, free: 27.16 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/1.27, allocations: 3.062 kB / 1.163 GB, free: 27.16 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/1.27, allocations: 7.125 kB / 1.163 GB, free: 27.16 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/1.27, allocations: 0 / 1.163 GB, free: 27.16 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/1.27, allocations: 0 / 1.163 GB, free: 27.16 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006942/1.271, allocations: 0.5226 MB / 1.164 GB, free: 26.88 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.545e-05/1.271, allocations: 17.64 kB / 1.164 GB, free: 26.87 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.988e-05/1.271, allocations: 12.47 kB / 1.164 GB, free: 26.86 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/1.271, allocations: 15.77 kB / 1.164 GB, free: 26.86 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.655e-05/1.271, allocations: 26.73 kB / 1.164 GB, free: 26.85 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/1.271, allocations: 10.92 kB / 1.164 GB, free: 26.85 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001514/1.271, allocations: 189.2 kB / 1.164 GB, free: 26.74 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/1.271, allocations: 192 / 1.164 GB, free: 26.74 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002663/1.271, allocations: 66.08 kB / 1.164 GB, free: 26.72 MB / 1.076 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.0001862/1.271, allocations: 137 kB / 1.164 GB, free: 26.62 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000499/1.272, allocations: 324.6 kB / 1.164 GB, free: 26.44 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.272, allocations: 0 / 1.164 GB, free: 26.44 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001955/1.272, allocations: 191.8 kB / 1.165 GB, free: 26.31 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/1.272, allocations: 35.66 kB / 1.165 GB, free: 26.3 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007247/1.273, allocations: 494.9 kB / 1.165 GB, free: 25.98 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001139/1.273, allocations: 139.3 kB / 1.165 GB, free: 25.91 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 7.463e-05/1.273, allocations: 26.92 kB / 1.165 GB, free: 25.9 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.128e-05/1.273, allocations: 17.06 kB / 1.165 GB, free: 25.89 MB / 1.076 GB Notification: Performance of SimCode: time 2.81e-07/1.273, allocations: 0 / 1.165 GB, free: 25.89 MB / 1.076 GB Notification: Performance of Templates: time 0.006523/1.28, allocations: 2.888 MB / 1.168 GB, free: 25.57 MB / 1.076 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 -s ida -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: 10.17222889396362]