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.001363/0.001363, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001659/0.001659, allocations: 169.4 kB / 24.06 MB, free: 456 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 0.9975/0.9975, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.025/2.025, allocations: 429.5 MB / 0.6743 GB, free: 3.906 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.573e-06/1.573e-06, allocations: 0 / 0.8794 GB, free: 6.031 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.783e-05/2.941e-05, allocations: 4.984 kB / 0.8794 GB, free: 6.027 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003349/0.003378, allocations: 1.988 MB / 0.8813 GB, free: 4.051 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00126/0.004638, allocations: 0.7151 MB / 0.882 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.004762, allocations: 4 kB / 0.882 GB, free: 3.328 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0002497/0.005012, allocations: 80.67 kB / 0.8821 GB, free: 3.25 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001389/0.005151, allocations: 97.58 kB / 0.8822 GB, free: 3.156 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000465/0.005616, allocations: 185.2 kB / 0.8824 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002374/0.005853, allocations: 255.4 kB / 0.8826 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.005978, allocations: 54.91 kB / 0.8827 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.00613, allocations: 163.6 kB / 0.8828 GB, free: 2.508 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.006293, allocations: 139.2 kB / 0.883 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.006321, allocations: 20 kB / 0.883 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.006432, allocations: 91.86 kB / 0.8831 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.465e-05/0.006497, allocations: 51.78 kB / 0.8831 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.164e-05/0.006558, allocations: 55.84 kB / 0.8832 GB, free: 2.16 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.00681, allocations: 231.2 kB / 0.8834 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.006813, allocations: 0 / 0.8834 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.132e-06/0.006814, allocations: 0 / 0.8834 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.006818, allocations: 0.625 kB / 0.8834 GB, free: 1.934 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.002785/0.009603, allocations: 0.595 MB / 0.884 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.009645, allocations: 12.81 kB / 0.884 GB, free: 1.285 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.678e-05/0.009732, allocations: 40.75 kB / 0.884 GB, free: 1.246 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.01004, allocations: 228.4 kB / 0.8842 GB, free: 1 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.01007, allocations: 13.91 kB / 0.8843 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.325e-05/0.01011, allocations: 12.38 kB / 0.8843 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002757/0.01038, allocations: 269.2 kB / 0.8845 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.01039, allocations: 4.188 kB / 0.8845 GB, free: 0.6602 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.01041, allocations: 4.375 kB / 0.8845 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.01041, allocations: 7.938 kB / 0.8845 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.964e-05/0.01049, allocations: 78.06 kB / 0.8846 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005684/0.01106, allocations: 0.6625 MB / 0.8853 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.01119, allocations: 112.6 kB / 0.8854 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.966e-05/0.01124, allocations: 69.5 kB / 0.8854 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.01125, allocations: 0 / 0.8854 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001422/0.0114, allocations: 148.4 kB / 0.8856 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.0114, allocations: 96 / 0.8856 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15): time 0.0002915/0.01169, allocations: 265.2 kB / 0.8858 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.01174, allocations: 132.5 kB / 0.886 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.01192, allocations: 304.2 kB / 0.8862 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.01193, allocations: 25.7 kB / 0.8863 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.01205, allocations: 215 kB / 0.8865 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/0.01208, allocations: 47.61 kB / 0.8865 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.328e-05/0.01213, allocations: 47.36 kB / 0.8866 GB, free: 14.38 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.01227, allocations: 0.5118 MB / 0.8871 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.999e-05/0.01232, allocations: 53.67 kB / 0.8871 GB, free: 13.8 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.078e-05/0.01241, allocations: 176.3 kB / 0.8873 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.01252, allocations: 153.6 kB / 0.8874 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.01252, allocations: 0 / 0.8874 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000221/0.01274, allocations: 236.9 kB / 0.8877 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.01278, allocations: 45.62 kB / 0.8877 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.01278, allocations: 0 / 0.8877 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.716e-06/0.01279, allocations: 0 / 0.8877 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.314e-05/0.01287, allocations: 27.92 kB / 0.8877 GB, free: 13.08 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.01288, allocations: 0 / 0.8877 GB, free: 13.08 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.698e-05/0.01295, allocations: 19.94 kB / 0.8877 GB, free: 13.06 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.01296, allocations: 8 kB / 0.8878 GB, free: 13.05 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.0001244/0.01308, allocations: 217.3 kB / 0.888 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.623e-05/0.01312, allocations: 35.75 kB / 0.888 GB, free: 12.79 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.641e-05/0.01315, allocations: 21.77 kB / 0.888 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.01316, allocations: 4 kB / 0.888 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.01316, allocations: 0 / 0.888 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.01316, allocations: 0 / 0.888 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.01331, allocations: 177.1 kB / 0.8882 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01331, allocations: 0 / 0.8882 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.29e-05/0.01337, allocations: 15.98 kB / 0.8882 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.01337, allocations: 0 / 0.8882 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.01339, allocations: 8 kB / 0.8882 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.01339, allocations: 7.938 kB / 0.8882 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01339, allocations: 0 / 0.8882 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.0137, allocations: 321.2 kB / 0.8885 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.174e-05/0.01372, allocations: 23.81 kB / 0.8885 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.01374, allocations: 8 kB / 0.8886 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.898e-05/0.01379, allocations: 11.92 kB / 0.8886 GB, free: 12.14 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.753e-05/0.01385, allocations: 27.95 kB / 0.8886 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.01387, allocations: 7.984 kB / 0.8886 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.317e-05/0.01396, allocations: 201.1 kB / 0.8888 GB, free: 11.91 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01396, allocations: 0 / 0.8888 GB, free: 11.91 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002019/0.01416, allocations: 59.97 kB / 0.8888 GB, free: 11.85 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.0001661/0.01433, allocations: 131.2 kB / 0.889 GB, free: 11.71 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002406/0.01457, allocations: 210.3 kB / 0.8892 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.01457, allocations: 4 kB / 0.8892 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.01468, allocations: 144.7 kB / 0.8893 GB, free: 11.31 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.01493, allocations: 33.05 kB / 0.8893 GB, free: 11.28 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006554/0.01559, allocations: 423.6 kB / 0.8897 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.114e-05/0.01565, allocations: 83.81 kB / 0.8898 GB, free: 10.73 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.744e-05/0.01572, allocations: 21.47 kB / 0.8899 GB, free: 10.71 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.01588, allocations: 126.2 kB / 0.89 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of SimCode: time 1.052e-06/0.01588, allocations: 0 / 0.89 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of Templates: time 0.005403/0.02128, allocations: 3.206 MB / 0.8931 GB, free: 7.43 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.399209639057517]