Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009693/0.0009693, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001086/0.001086, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 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 0.9586/0.9586, allocations: 177.1 MB / 203.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.122/2.122, allocations: 429.5 MB / 0.6733 GB, free: 4.012 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 0.8782 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.184e-05/2.309e-05, allocations: 9.062 kB / 0.8782 GB, free: 6.301 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002847/0.00287, allocations: 2.002 MB / 0.8801 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001022/0.003892, allocations: 0.7245 MB / 0.8808 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.004008, allocations: 7.938 kB / 0.8808 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.004234, allocations: 83.62 kB / 0.8809 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.874e-05/0.004332, allocations: 89.48 kB / 0.881 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004815/0.004814, allocations: 188.7 kB / 0.8812 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002734/0.005087, allocations: 264.5 kB / 0.8814 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.005214, allocations: 46.16 kB / 0.8815 GB, free: 2.914 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.005364, allocations: 155.7 kB / 0.8816 GB, free: 2.762 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.005519, allocations: 136.7 kB / 0.8817 GB, free: 2.629 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.093e-05/0.00555, allocations: 24.66 kB / 0.8818 GB, free: 2.605 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.005663, allocations: 91.86 kB / 0.8819 GB, free: 2.516 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.52e-05/0.005738, allocations: 68.36 kB / 0.8819 GB, free: 2.449 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.404e-05/0.005802, allocations: 59.83 kB / 0.882 GB, free: 2.391 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002704/0.006073, allocations: 240.6 kB / 0.8822 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.006075, allocations: 0 / 0.8822 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.11e-07/0.006076, allocations: 0 / 0.8822 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.00608, allocations: 0.625 kB / 0.8822 GB, free: 2.156 MB / 0.8386 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.0006169/0.006697, allocations: 0.608 MB / 0.8828 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.006737, allocations: 8.031 kB / 0.8828 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.527e-05/0.006803, allocations: 36.75 kB / 0.8828 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.007105, allocations: 249.7 kB / 0.8831 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.007128, allocations: 8.375 kB / 0.8831 GB, free: 1.191 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.588e-05/0.007164, allocations: 16.38 kB / 0.8831 GB, free: 1.176 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002688/0.007433, allocations: 275.6 kB / 0.8834 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.007442, allocations: 192 / 0.8834 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.007459, allocations: 12.11 kB / 0.8834 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.007468, allocations: 4 kB / 0.8834 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.007578, allocations: 87.25 kB / 0.8835 GB, free: 0.7539 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006174/0.008195, allocations: 0.7177 MB / 0.8842 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.008346, allocations: 112.8 kB / 0.8843 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.196e-05/0.008408, allocations: 65.91 kB / 0.8843 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.008419, allocations: 1.469 kB / 0.8843 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001439/0.008563, allocations: 156.4 kB / 0.8845 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.008564, allocations: 0 / 0.8845 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15): time 0.000323/0.008887, allocations: 283 kB / 0.8848 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.008933, allocations: 132.5 kB / 0.8849 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.009111, allocations: 308.3 kB / 0.8852 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.009127, allocations: 29.7 kB / 0.8852 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 9.409e-05/0.009221, allocations: 211.1 kB / 0.8854 GB, free: 14.59 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.009252, allocations: 43.69 kB / 0.8855 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-05/0.009303, allocations: 43.36 kB / 0.8855 GB, free: 14.49 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002574/0.009561, allocations: 0.5118 MB / 0.886 GB, free: 13.97 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.848e-05/0.009629, allocations: 57.69 kB / 0.8861 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.009732, allocations: 175 kB / 0.8862 GB, free: 13.69 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.009858, allocations: 164.4 kB / 0.8864 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.009861, allocations: 0 / 0.8864 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002326/0.01009, allocations: 248.7 kB / 0.8866 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.01013, allocations: 41.69 kB / 0.8867 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.01013, allocations: 0 / 0.8867 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.01015, allocations: 0 / 0.8867 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.458e-05/0.01023, allocations: 19.98 kB / 0.8867 GB, free: 13.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.01024, allocations: 7.938 kB / 0.8867 GB, free: 13.17 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.56e-05/0.01029, allocations: 15.89 kB / 0.8867 GB, free: 13.15 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.0103, allocations: 16.09 kB / 0.8867 GB, free: 13.14 MB / 0.8542 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 9.917e-05/0.0104, allocations: 198.3 kB / 0.8869 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.069e-05/0.01043, allocations: 39.75 kB / 0.8869 GB, free: 12.89 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.395e-05/0.01047, allocations: 21.77 kB / 0.887 GB, free: 12.87 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.01047, allocations: 4 kB / 0.887 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.01047, allocations: 0 / 0.887 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.01048, allocations: 3.984 kB / 0.887 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.01063, allocations: 212.5 kB / 0.8872 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.01064, allocations: 7.938 kB / 0.8872 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.534e-05/0.01069, allocations: 19.98 kB / 0.8872 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.0107, allocations: 11.88 kB / 0.8872 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.01071, allocations: 4 kB / 0.8872 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.01071, allocations: 0 / 0.8872 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01071, allocations: 4 kB / 0.8872 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003088/0.01102, allocations: 329.3 kB / 0.8875 GB, free: 12.21 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.455e-05/0.01104, allocations: 39.66 kB / 0.8876 GB, free: 12.17 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.01107, allocations: 8 kB / 0.8876 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.396e-05/0.01111, allocations: 8 kB / 0.8876 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.56e-05/0.01118, allocations: 31.98 kB / 0.8876 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.01119, allocations: 7.984 kB / 0.8876 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.91e-05/0.01129, allocations: 205.1 kB / 0.8878 GB, free: 11.92 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01129, allocations: 0 / 0.8878 GB, free: 11.92 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001763/0.01147, allocations: 51.94 kB / 0.8879 GB, free: 11.87 MB / 0.8542 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.0001525/0.01162, allocations: 138.9 kB / 0.888 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002265/0.01185, allocations: 226.4 kB / 0.8882 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01185, allocations: 8.188 kB / 0.8882 GB, free: 11.47 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.344e-05/0.01194, allocations: 144.7 kB / 0.8884 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001987/0.01214, allocations: 41.36 kB / 0.8884 GB, free: 11.27 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004928/0.01263, allocations: 415.8 kB / 0.8888 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.718e-05/0.01268, allocations: 87.81 kB / 0.8889 GB, free: 10.73 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.476e-05/0.01273, allocations: 17.48 kB / 0.8889 GB, free: 10.71 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.845e-05/0.01276, allocations: 16.5 kB / 0.8889 GB, free: 10.69 MB / 0.8542 GB Notification: Performance of SimCode: time 6.51e-07/0.01276, allocations: 3.938 kB / 0.8889 GB, free: 10.68 MB / 0.8542 GB Notification: Performance of Templates: time 0.004782/0.01755, allocations: 2.906 MB / 0.8918 GB, free: 7.816 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 5.512824756093323]