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.001438/0.001438, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001648/0.001648, allocations: 173 kB / 23.49 MB, free: 1.059 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 1.031/1.031, allocations: 177.1 MB / 203.8 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.077/2.077, allocations: 429.5 MB / 0.6736 GB, free: 4.039 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 2.345e-06/2.345e-06, allocations: 0 / 0.8782 GB, free: 6.66 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.973e-05/3.207e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003626/0.003658, allocations: 1.997 MB / 0.8801 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009683/0.004626, allocations: 0.7283 MB / 0.8808 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.58e-05/0.004722, allocations: 0 / 0.8808 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.004935, allocations: 81.38 kB / 0.8809 GB, free: 3.859 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.386e-05/0.005029, allocations: 92.53 kB / 0.881 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004437/0.005473, allocations: 188.6 kB / 0.8812 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002502/0.005723, allocations: 259.4 kB / 0.8814 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.005854, allocations: 51.25 kB / 0.8815 GB, free: 3.277 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.006003, allocations: 155.7 kB / 0.8816 GB, free: 3.125 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.006161, allocations: 136.8 kB / 0.8818 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.917e-05/0.00619, allocations: 24 kB / 0.8818 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.006298, allocations: 92.83 kB / 0.8819 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.606e-05/0.006364, allocations: 55.83 kB / 0.8819 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.715e-05/0.006431, allocations: 71.77 kB / 0.882 GB, free: 2.754 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000259/0.00669, allocations: 224 kB / 0.8822 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.006693, allocations: 5.656 kB / 0.8822 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.223e-06/0.006694, allocations: 3.938 kB / 0.8822 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.006699, allocations: 0 / 0.8822 GB, free: 2.527 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.0006045/0.007304, allocations: 0.6105 MB / 0.8828 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.007342, allocations: 13.91 kB / 0.8828 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.644e-05/0.007408, allocations: 40.75 kB / 0.8829 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.007713, allocations: 240.9 kB / 0.8831 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.381e-05/0.007737, allocations: 12.38 kB / 0.8831 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.007765, allocations: 16.38 kB / 0.8831 GB, free: 1.539 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.008036, allocations: 265.3 kB / 0.8834 GB, free: 1.23 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.008044, allocations: 192 / 0.8834 GB, free: 1.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.008062, allocations: 12.12 kB / 0.8834 GB, free: 1.219 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.00807, allocations: 10.45 kB / 0.8834 GB, free: 1.211 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001097/0.00818, allocations: 83.25 kB / 0.8835 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005966/0.008777, allocations: 0.7204 MB / 0.8842 GB, free: 368 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.008932, allocations: 115 kB / 0.8843 GB, free: 236 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.618e-05/0.008998, allocations: 65.38 kB / 0.8843 GB, free: 160 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.009009, allocations: 4 kB / 0.8843 GB, free: 156 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001624/0.009171, allocations: 156.4 kB / 0.8845 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=15): time 1.924e-06/0.009173, allocations: 4 kB / 0.8845 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15): time 0.0003237/0.009497, allocations: 270 kB / 0.8848 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.009549, allocations: 140.5 kB / 0.8849 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.009731, allocations: 300.3 kB / 0.8852 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.009751, allocations: 33.7 kB / 0.8852 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 9.491e-05/0.009845, allocations: 211 kB / 0.8854 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.009875, allocations: 43.67 kB / 0.8855 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/0.009927, allocations: 47.36 kB / 0.8855 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.01005, allocations: 0.5118 MB / 0.886 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.772e-05/0.01012, allocations: 53.69 kB / 0.886 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.01022, allocations: 185.4 kB / 0.8862 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.01036, allocations: 156.1 kB / 0.8864 GB, free: 13.87 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.01036, allocations: 0 / 0.8864 GB, free: 13.87 MB / 0.8542 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002687/0.01063, allocations: 246.5 kB / 0.8866 GB, free: 13.61 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/0.01066, allocations: 41.69 kB / 0.8867 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01067, allocations: 7.984 kB / 0.8867 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.01068, allocations: 8.125 kB / 0.8867 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.695e-05/0.01077, allocations: 23.92 kB / 0.8867 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.01078, allocations: 0 / 0.8867 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.023e-05/0.01084, allocations: 23.89 kB / 0.8867 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.01085, allocations: 4 kB / 0.8867 GB, free: 13.5 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 0.0001051/0.01095, allocations: 206.2 kB / 0.8869 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.01098, allocations: 35.75 kB / 0.8869 GB, free: 13.25 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.454e-05/0.01102, allocations: 29.77 kB / 0.887 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.01102, allocations: 0 / 0.887 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.01102, allocations: 4 kB / 0.887 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.01103, allocations: 0 / 0.887 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.01117, allocations: 216.5 kB / 0.8872 GB, free: 12.97 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.01118, allocations: 0 / 0.8872 GB, free: 12.97 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.549e-05/0.01123, allocations: 15.98 kB / 0.8872 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.01123, allocations: 3.938 kB / 0.8872 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.01125, allocations: 4 kB / 0.8872 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.01125, allocations: 0 / 0.8872 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.01125, allocations: 0 / 0.8872 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004544/0.0117, allocations: 345.2 kB / 0.8875 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.349e-05/0.01173, allocations: 35.7 kB / 0.8876 GB, free: 12.53 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/0.01175, allocations: 12 kB / 0.8876 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.515e-05/0.0118, allocations: 4 kB / 0.8876 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.606e-05/0.01187, allocations: 23.95 kB / 0.8876 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.01188, allocations: 11.98 kB / 0.8876 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001039/0.01199, allocations: 201.1 kB / 0.8878 GB, free: 12.29 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01199, allocations: 0 / 0.8878 GB, free: 12.29 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001789/0.01217, allocations: 55.94 kB / 0.8879 GB, free: 12.23 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.0001511/0.01232, allocations: 141.9 kB / 0.888 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002358/0.01255, allocations: 222.4 kB / 0.8882 GB, free: 11.84 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.01255, allocations: 0 / 0.8882 GB, free: 11.84 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.89e-05/0.01265, allocations: 152.7 kB / 0.8884 GB, free: 11.67 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.01286, allocations: 40.73 kB / 0.8884 GB, free: 11.63 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005084/0.01337, allocations: 420 kB / 0.8888 GB, free: 11.19 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.804e-05/0.01342, allocations: 83.81 kB / 0.8889 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.027e-05/0.01347, allocations: 21.48 kB / 0.8889 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.01364, allocations: 24.5 kB / 0.8889 GB, free: 11.04 MB / 0.8542 GB Notification: Performance of SimCode: time 6.01e-07/0.01364, allocations: 0 / 0.8889 GB, free: 11.04 MB / 0.8542 GB Notification: Performance of Templates: time 0.004739/0.01838, allocations: 2.91 MB / 0.8918 GB, free: 8.176 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.495922927977517]