Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0009482/0.0009482, allocations: 82.64 kB / 20.68 MB, free: 3.816 MB / 18.57 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.0009212/0.0009212, allocations: 181 kB / 24.09 MB, free: 420 kB / 18.57 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.001/1.001, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.732/1.732, allocations: 359 MB / 0.6055 GB, free: 10.88 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.434e-06/2.434e-06, allocations: 0 / 0.7875 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.802e-05/2.046e-05, allocations: 2.312 kB / 0.7875 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003083/0.003104, allocations: 1.984 MB / 0.7895 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.00442, allocations: 0.7072 MB / 0.7902 GB, free: 9.52 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.004572, allocations: 5.062 kB / 0.7902 GB, free: 9.516 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0002538/0.004825, allocations: 85.14 kB / 0.7903 GB, free: 9.434 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.004972, allocations: 96 kB / 0.7903 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005512/0.005524, allocations: 185.1 kB / 0.7905 GB, free: 9.16 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003353/0.005859, allocations: 256.3 kB / 0.7908 GB, free: 8.91 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.006, allocations: 50.16 kB / 0.7908 GB, free: 8.863 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002306/0.006231, allocations: 160.3 kB / 0.791 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.006441, allocations: 137 kB / 0.7911 GB, free: 8.574 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.719e-05/0.006478, allocations: 16 kB / 0.7911 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.006632, allocations: 95.84 kB / 0.7912 GB, free: 8.465 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 7.863e-05/0.00671, allocations: 61.8 kB / 0.7913 GB, free: 8.406 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.792e-05/0.006778, allocations: 47.86 kB / 0.7913 GB, free: 8.359 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.007101, allocations: 231.2 kB / 0.7915 GB, free: 8.133 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.007103, allocations: 0 / 0.7915 GB, free: 8.133 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.72e-07/0.007104, allocations: 4 kB / 0.7915 GB, free: 8.129 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.007108, allocations: 2.188 kB / 0.7915 GB, free: 8.129 MB / 0.7448 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.0006994/0.007807, allocations: 0.5984 MB / 0.7921 GB, free: 7.488 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.007847, allocations: 8.031 kB / 0.7921 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.095e-05/0.007918, allocations: 40.75 kB / 0.7922 GB, free: 7.441 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.008186, allocations: 232.3 kB / 0.7924 GB, free: 7.188 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/0.008211, allocations: 8.906 kB / 0.7924 GB, free: 7.18 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/0.008244, allocations: 18.03 kB / 0.7924 GB, free: 7.164 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.008559, allocations: 268.1 kB / 0.7927 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.008569, allocations: 192 / 0.7927 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/0.008589, allocations: 12.36 kB / 0.7927 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.008599, allocations: 8.594 kB / 0.7927 GB, free: 6.832 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.008717, allocations: 75.25 kB / 0.7928 GB, free: 6.754 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006722/0.009389, allocations: 0.6714 MB / 0.7934 GB, free: 6.047 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.00954, allocations: 112.7 kB / 0.7935 GB, free: 5.918 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.586e-05/0.009606, allocations: 58.89 kB / 0.7936 GB, free: 5.852 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.009619, allocations: 4 kB / 0.7936 GB, free: 5.848 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001604/0.009779, allocations: 152.4 kB / 0.7937 GB, free: 5.672 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.00978, allocations: 1.75 kB / 0.7937 GB, free: 5.672 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15): time 0.0003416/0.01012, allocations: 256.8 kB / 0.794 GB, free: 5.398 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.888e-05/0.01019, allocations: 136.5 kB / 0.7941 GB, free: 5.234 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/0.01041, allocations: 308.2 kB / 0.7944 GB, free: 4.918 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.01044, allocations: 34.58 kB / 0.7944 GB, free: 4.879 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.01055, allocations: 203.1 kB / 0.7946 GB, free: 4.676 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.692e-05/0.01059, allocations: 49.12 kB / 0.7947 GB, free: 4.629 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.938e-05/0.01066, allocations: 47.34 kB / 0.7947 GB, free: 4.574 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.01081, allocations: 0.5118 MB / 0.7952 GB, free: 4.051 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.213e-05/0.01086, allocations: 49.69 kB / 0.7953 GB, free: 3.996 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.01097, allocations: 172.3 kB / 0.7954 GB, free: 3.785 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.01111, allocations: 157.4 kB / 0.7956 GB, free: 3.605 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01111, allocations: 0 / 0.7956 GB, free: 3.605 MB / 0.7448 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002648/0.01137, allocations: 239.2 kB / 0.7958 GB, free: 3.355 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.01141, allocations: 45.62 kB / 0.7959 GB, free: 3.305 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.01141, allocations: 0 / 0.7959 GB, free: 3.305 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.01143, allocations: 4 kB / 0.7959 GB, free: 3.301 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.288e-05/0.01151, allocations: 20.48 kB / 0.7959 GB, free: 3.281 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.01152, allocations: 9.875 kB / 0.7959 GB, free: 3.273 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.678e-05/0.01159, allocations: 19.94 kB / 0.7959 GB, free: 3.254 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.01161, allocations: 4 kB / 0.7959 GB, free: 3.25 MB / 0.7448 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.000125/0.01173, allocations: 215.7 kB / 0.7961 GB, free: 3.027 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.798e-05/0.01177, allocations: 31.8 kB / 0.7961 GB, free: 2.996 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.152e-05/0.01181, allocations: 25.78 kB / 0.7962 GB, free: 2.973 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.01181, allocations: 0 / 0.7962 GB, free: 2.973 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.01182, allocations: 3.984 kB / 0.7962 GB, free: 2.969 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.01182, allocations: 0 / 0.7962 GB, free: 2.969 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.01198, allocations: 169.1 kB / 0.7963 GB, free: 2.777 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.01198, allocations: 4.859 kB / 0.7963 GB, free: 2.773 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.496e-05/0.01205, allocations: 11.94 kB / 0.7963 GB, free: 2.762 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.01205, allocations: 4.844 kB / 0.7964 GB, free: 2.758 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.01206, allocations: 4 kB / 0.7964 GB, free: 2.754 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.01207, allocations: 13.2 kB / 0.7964 GB, free: 2.742 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01207, allocations: 0 / 0.7964 GB, free: 2.742 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003492/0.01242, allocations: 317.2 kB / 0.7967 GB, free: 2.391 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.446e-05/0.01244, allocations: 20.67 kB / 0.7967 GB, free: 2.371 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.01247, allocations: 8 kB / 0.7967 GB, free: 2.363 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.896e-05/0.01253, allocations: 18.73 kB / 0.7967 GB, free: 2.348 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.0126, allocations: 27.95 kB / 0.7967 GB, free: 2.32 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.01261, allocations: 4 kB / 0.7967 GB, free: 2.316 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001168/0.01273, allocations: 197.1 kB / 0.7969 GB, free: 2.121 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01273, allocations: 0 / 0.7969 GB, free: 2.121 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002663/0.013, allocations: 59.88 kB / 0.797 GB, free: 2.062 MB / 0.7448 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.0001647/0.01316, allocations: 136.8 kB / 0.7971 GB, free: 1.922 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002561/0.01342, allocations: 214.4 kB / 0.7973 GB, free: 1.684 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.01342, allocations: 0 / 0.7973 GB, free: 1.684 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 9.445e-05/0.01351, allocations: 152.3 kB / 0.7975 GB, free: 1.516 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.0137, allocations: 41.91 kB / 0.7975 GB, free: 1.477 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004273/0.01413, allocations: 416.5 kB / 0.7979 GB, free: 1.039 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.337e-05/0.01417, allocations: 84.88 kB / 0.798 GB, free: 0.9375 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.051e-05/0.01422, allocations: 24.12 kB / 0.798 GB, free: 0.9141 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.01434, allocations: 123.5 kB / 0.7981 GB, free: 0.793 MB / 0.7448 GB Notification: Performance of SimCode: time 5.71e-07/0.01434, allocations: 0 / 0.7981 GB, free: 0.793 MB / 0.7448 GB Notification: Performance of Templates: time 0.004482/0.01882, allocations: 3.139 MB / 0.8012 GB, free: 13.7 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.922394870314747]