Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.00123, allocations: 110.8 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 183 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 390.3 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 55.91 kB / 0.9515 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8187/0.8203, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003367/0.8237, allocations: 1.946 MB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001299/0.825, allocations: 0.714 MB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.8252, allocations: 2.156 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002681/0.8254, allocations: 85.28 kB / 1.091 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.8256, allocations: 95.16 kB / 1.091 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006338/0.8263, allocations: 187.9 kB / 1.092 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003444/0.8266, allocations: 259.4 kB / 1.092 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.8268, allocations: 80.7 kB / 1.092 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.827, allocations: 115.2 kB / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.8272, allocations: 154.2 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.005e-05/0.8273, allocations: 20.91 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.8275, allocations: 96.62 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.722e-05/0.8276, allocations: 51.92 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.8277, allocations: 104.8 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.8282, allocations: 309.5 kB / 1.093 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.8282, allocations: 0.625 kB / 1.093 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.643e-06/0.8282, allocations: 4 kB / 1.093 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.762e-06/0.8282, allocations: 0.5938 kB / 1.093 GB, free: 3.012 MB / 0.8575 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.0009006/0.8291, allocations: 0.5812 MB / 1.093 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.8292, allocations: 9.5 kB / 1.093 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.79e-05/0.8292, allocations: 35.08 kB / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005285/0.8298, allocations: 303.1 kB / 1.094 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.8298, allocations: 11.09 kB / 1.094 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.189e-05/0.8299, allocations: 14 kB / 1.094 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.8303, allocations: 237.9 kB / 1.094 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.8303, allocations: 0 / 1.094 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.8303, allocations: 6.188 kB / 1.094 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.8304, allocations: 3.844 kB / 1.094 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002872/0.8307, allocations: 132.3 kB / 1.094 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008858/0.8315, allocations: 0.6821 MB / 1.095 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.8319, allocations: 164 kB / 1.095 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.8322, allocations: 103 kB / 1.095 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.8322, allocations: 1.969 kB / 1.095 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002907/0.8325, allocations: 172.5 kB / 1.095 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.8325, allocations: 0.6875 kB / 1.095 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0008051/0.8333, allocations: 373.5 kB / 1.095 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.8334, allocations: 137.6 kB / 1.096 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.8337, allocations: 283.3 kB / 1.096 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.8337, allocations: 36.17 kB / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.491e-05/0.8338, allocations: 151.3 kB / 1.096 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.276e-05/0.8339, allocations: 42.25 kB / 1.096 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.846e-05/0.834, allocations: 40.95 kB / 1.096 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.138e-05/0.834, allocations: 338.2 kB / 1.096 GB, free: 252 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.8342, allocations: 90.03 kB / 1.096 GB, free: 224 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.8345, allocations: 131.3 kB / 1.097 GB, free: 148 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000348/0.8348, allocations: 240.1 kB / 1.097 GB, free: 0 / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.8348, allocations: 0 / 1.097 GB, free: 0 / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006399/0.8355, allocations: 336.2 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.429e-05/0.8355, allocations: 35.78 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.8355, allocations: 0.6875 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.8356, allocations: 2.188 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.8357, allocations: 33.45 kB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.8357, allocations: 2.953 kB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.8358, allocations: 25.28 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.8359, allocations: 11.23 kB / 1.097 GB, free: 15.8 MB / 0.8731 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.0001952/0.8361, allocations: 196.1 kB / 1.097 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.776e-05/0.8361, allocations: 29.53 kB / 1.097 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.358e-05/0.8362, allocations: 30.31 kB / 1.098 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.8362, allocations: 1.344 kB / 1.098 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.8362, allocations: 1.812 kB / 1.098 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.8362, allocations: 4.562 kB / 1.098 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003201/0.8366, allocations: 289.1 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.8366, allocations: 0 / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.8367, allocations: 20.11 kB / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.8367, allocations: 0 / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.8367, allocations: 4.625 kB / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.8367, allocations: 1.781 kB / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.8367, allocations: 0 / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008119/0.8376, allocations: 471.1 kB / 1.098 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.562e-05/0.8376, allocations: 99.62 kB / 1.098 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.371e-05/0.8377, allocations: 8.969 kB / 1.098 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.8378, allocations: 11.98 kB / 1.098 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.623e-05/0.8379, allocations: 23.75 kB / 1.098 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.8379, allocations: 5.078 kB / 1.098 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002032/0.8381, allocations: 208 kB / 1.099 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8381, allocations: 4 kB / 1.099 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003357/0.8385, allocations: 61.16 kB / 1.099 GB, free: 14.89 MB / 0.8731 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.0002122/0.8387, allocations: 134.2 kB / 1.099 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005179/0.8392, allocations: 296.6 kB / 1.099 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.8392, allocations: 192 / 1.099 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002469/0.8395, allocations: 186.7 kB / 1.099 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.8398, allocations: 46.62 kB / 1.099 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.8409, allocations: 0.4946 MB / 1.1 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.8413, allocations: 0.7493 MB / 1.101 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.755e-05/0.8414, allocations: 18.66 kB / 1.101 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of SimCode: time 2.71e-07/0.8414, allocations: 0 / 1.101 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of Templates: time 0.006753/0.8481, allocations: 3.008 MB / 1.103 GB, free: 13.19 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches