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.001918/0.001918, allocations: 83.69 kB / 20.23 MB, free: 4.191 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.002015/0.002015, allocations: 157.7 kB / 23.55 MB, free: 0.8711 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.678/1.678, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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 3.145/3.145, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 176] 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 1.833e-06/1.833e-06, allocations: 0 / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.56e-05/3.743e-05, allocations: 5.688 kB / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004249/0.004286, allocations: 1.958 MB / 0.7883 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002127/0.006413, allocations: 0.7231 MB / 0.789 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.00657, allocations: 4 kB / 0.789 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0003734/0.006944, allocations: 80.69 kB / 0.7891 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.007122, allocations: 93.48 kB / 0.7892 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007192/0.007841, allocations: 190.5 kB / 0.7893 GB, free: 9.773 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0004196/0.008261, allocations: 263.3 kB / 0.7896 GB, free: 9.516 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.008452, allocations: 42.17 kB / 0.7896 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002702/0.008722, allocations: 155.7 kB / 0.7898 GB, free: 9.324 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002787/0.009001, allocations: 140.4 kB / 0.7899 GB, free: 9.188 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.009054, allocations: 20 kB / 0.7899 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.009229, allocations: 89.52 kB / 0.79 GB, free: 9.082 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.009348, allocations: 59.77 kB / 0.7901 GB, free: 9.023 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.009456, allocations: 59.83 kB / 0.7901 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0005567/0.01001, allocations: 342.8 kB / 0.7905 GB, free: 8.629 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.01002, allocations: 1.688 kB / 0.7905 GB, free: 8.629 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.004e-06/0.01002, allocations: 0 / 0.7905 GB, free: 8.629 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 8.617e-06/0.01003, allocations: 0 / 0.7905 GB, free: 8.629 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.001167/0.0112, allocations: 0.6202 MB / 0.7911 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.01125, allocations: 8.031 kB / 0.7911 GB, free: 7.961 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.01137, allocations: 40.8 kB / 0.7911 GB, free: 7.922 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.01189, allocations: 240.3 kB / 0.7913 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/0.01193, allocations: 12.38 kB / 0.7913 GB, free: 7.648 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/0.01197, allocations: 18.03 kB / 0.7914 GB, free: 7.633 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005292/0.0125, allocations: 295 kB / 0.7916 GB, free: 7.297 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.01251, allocations: 192 / 0.7916 GB, free: 7.297 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.01254, allocations: 8.125 kB / 0.7917 GB, free: 7.289 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.01254, allocations: 5.375 kB / 0.7917 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002816/0.01283, allocations: 126.1 kB / 0.7918 GB, free: 7.156 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.01399, allocations: 0.785 MB / 0.7925 GB, free: 6.328 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/0.01438, allocations: 152.8 kB / 0.7927 GB, free: 6.16 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.01455, allocations: 94.16 kB / 0.7928 GB, free: 6.059 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.01458, allocations: 8.906 kB / 0.7928 GB, free: 6.051 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00032/0.0149, allocations: 180.3 kB / 0.793 GB, free: 5.848 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.0149, allocations: 1.938 kB / 0.793 GB, free: 5.848 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15): time 0.0007468/0.01565, allocations: 322.4 kB / 0.7933 GB, free: 5.508 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.01578, allocations: 132.5 kB / 0.7934 GB, free: 5.348 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004386/0.01622, allocations: 352.2 kB / 0.7937 GB, free: 4.988 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.01626, allocations: 35.8 kB / 0.7938 GB, free: 4.949 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.01649, allocations: 223.1 kB / 0.794 GB, free: 4.727 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.363e-05/0.01656, allocations: 47.64 kB / 0.794 GB, free: 4.68 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.01666, allocations: 51.38 kB / 0.7941 GB, free: 4.621 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0003754/0.01704, allocations: 0.5235 MB / 0.7946 GB, free: 4.086 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.01722, allocations: 82.17 kB / 0.7947 GB, free: 4 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003085/0.01752, allocations: 211.7 kB / 0.7949 GB, free: 3.75 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.01787, allocations: 197.2 kB / 0.7951 GB, free: 3.531 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01787, allocations: 1.531 kB / 0.7951 GB, free: 3.531 MB / 0.7448 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008319/0.0187, allocations: 292.7 kB / 0.7953 GB, free: 3.227 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.285e-05/0.01876, allocations: 42.22 kB / 0.7954 GB, free: 3.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.01877, allocations: 1.312 kB / 0.7954 GB, free: 3.18 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.01879, allocations: 4 kB / 0.7954 GB, free: 3.176 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.01892, allocations: 19.98 kB / 0.7954 GB, free: 3.156 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.01893, allocations: 5.156 kB / 0.7954 GB, free: 3.152 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.01905, allocations: 23.88 kB / 0.7954 GB, free: 3.129 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.01907, allocations: 4 kB / 0.7954 GB, free: 3.125 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.0002382/0.01931, allocations: 219.9 kB / 0.7956 GB, free: 2.895 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.551e-05/0.01937, allocations: 39.8 kB / 0.7957 GB, free: 2.855 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.007e-05/0.01943, allocations: 21.77 kB / 0.7957 GB, free: 2.832 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.01944, allocations: 5.344 kB / 0.7957 GB, free: 2.828 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.01945, allocations: 0 / 0.7957 GB, free: 2.828 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.01945, allocations: 0 / 0.7957 GB, free: 2.828 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.01979, allocations: 252.9 kB / 0.7959 GB, free: 2.547 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.01979, allocations: 0 / 0.7959 GB, free: 2.547 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.01989, allocations: 20.61 kB / 0.796 GB, free: 2.527 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/0.0199, allocations: 9.688 kB / 0.796 GB, free: 2.52 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.01992, allocations: 0 / 0.796 GB, free: 2.52 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.01992, allocations: 4 kB / 0.796 GB, free: 2.516 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01992, allocations: 0 / 0.796 GB, free: 2.516 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007427/0.02067, allocations: 408.9 kB / 0.7964 GB, free: 2.078 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.02072, allocations: 31.72 kB / 0.7964 GB, free: 2.047 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.02076, allocations: 11.47 kB / 0.7964 GB, free: 2.039 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.082e-05/0.02085, allocations: 11.98 kB / 0.7964 GB, free: 2.027 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.02096, allocations: 31.89 kB / 0.7964 GB, free: 1.996 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/0.02099, allocations: 4 kB / 0.7965 GB, free: 1.992 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002286/0.02121, allocations: 225.1 kB / 0.7967 GB, free: 1.773 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.02121, allocations: 0 / 0.7967 GB, free: 1.773 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002913/0.02151, allocations: 59.89 kB / 0.7967 GB, free: 1.715 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.0002798/0.02179, allocations: 135.7 kB / 0.7969 GB, free: 1.57 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005325/0.02232, allocations: 285.6 kB / 0.7971 GB, free: 1.266 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.02232, allocations: 0 / 0.7971 GB, free: 1.266 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002613/0.02258, allocations: 177.4 kB / 0.7973 GB, free: 1.07 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.02292, allocations: 47.89 kB / 0.7973 GB, free: 1.027 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000946/0.02386, allocations: 435.4 kB / 0.7978 GB, free: 0.5703 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001785/0.02404, allocations: 139.3 kB / 0.7979 GB, free: 424 kB / 0.7448 GB Notification: Performance of simCode: alias equations: time 8.283e-05/0.02412, allocations: 19.48 kB / 0.7979 GB, free: 408 kB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.02418, allocations: 25.53 kB / 0.7979 GB, free: 384 kB / 0.7448 GB Notification: Performance of SimCode: time 9.11e-07/0.02419, allocations: 0 / 0.7979 GB, free: 384 kB / 0.7448 GB Notification: Performance of Templates: time 0.008304/0.03249, allocations: 2.892 MB / 0.8008 GB, free: 13.55 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.881912664975971]