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.001361/0.001361, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001431/0.001431, allocations: 169 kB / 24.28 MB, free: 276 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.9386/0.9386, allocations: 177.1 MB / 204.6 MB, free: 5.637 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.747/1.747, allocations: 359 MB / 0.6055 GB, free: 11.02 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 1.784e-06/1.784e-06, allocations: 0 / 0.7871 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.675e-05/2.853e-05, allocations: 2.938 kB / 0.7871 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003427/0.003455, allocations: 1.999 MB / 0.789 GB, free: 10.82 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.004782, allocations: 0.7104 MB / 0.7897 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.004921, allocations: 3.938 kB / 0.7897 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.005152, allocations: 92.56 kB / 0.7898 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.005294, allocations: 86.11 kB / 0.7899 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005894/0.005883, allocations: 185.1 kB / 0.7901 GB, free: 9.754 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003421/0.006225, allocations: 259.4 kB / 0.7903 GB, free: 9.5 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.006389, allocations: 54.09 kB / 0.7904 GB, free: 9.449 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002306/0.00662, allocations: 152.4 kB / 0.7905 GB, free: 9.301 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.006828, allocations: 137.3 kB / 0.7906 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.958e-05/0.006867, allocations: 24 kB / 0.7907 GB, free: 9.145 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001535/0.007021, allocations: 91.86 kB / 0.7908 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 8.542e-05/0.007106, allocations: 60.55 kB / 0.7908 GB, free: 8.996 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 8.914e-05/0.007195, allocations: 63.83 kB / 0.7909 GB, free: 8.934 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004026/0.007598, allocations: 235.9 kB / 0.7911 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.007603, allocations: 0 / 0.7911 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.223e-06/0.007604, allocations: 0 / 0.7911 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.00761, allocations: 1.469 kB / 0.7911 GB, free: 8.703 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.001044/0.008654, allocations: 0.6042 MB / 0.7917 GB, free: 8.059 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.008712, allocations: 12.03 kB / 0.7917 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.008823, allocations: 40.75 kB / 0.7917 GB, free: 8.008 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004996/0.009323, allocations: 242.1 kB / 0.792 GB, free: 7.746 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.212e-05/0.009365, allocations: 16.38 kB / 0.792 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/0.009408, allocations: 16.38 kB / 0.792 GB, free: 7.715 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004602/0.009869, allocations: 267.7 kB / 0.7923 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.009884, allocations: 4.891 kB / 0.7923 GB, free: 7.398 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.009914, allocations: 12.12 kB / 0.7923 GB, free: 7.387 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.00993, allocations: 4.531 kB / 0.7923 GB, free: 7.383 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.01014, allocations: 88.42 kB / 0.7924 GB, free: 7.293 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.01156, allocations: 0.7282 MB / 0.7931 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002557/0.01182, allocations: 113.5 kB / 0.7932 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.01192, allocations: 66.69 kB / 0.7932 GB, free: 6.316 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.01194, allocations: 4 kB / 0.7932 GB, free: 6.312 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002908/0.01223, allocations: 161.5 kB / 0.7934 GB, free: 6.129 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=15): time 3.757e-06/0.01223, allocations: 0 / 0.7934 GB, free: 6.129 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15): time 0.0005244/0.01276, allocations: 270.5 kB / 0.7937 GB, free: 5.84 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.581e-05/0.01284, allocations: 133.9 kB / 0.7938 GB, free: 5.68 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.01315, allocations: 304.3 kB / 0.7941 GB, free: 5.367 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.01318, allocations: 33.7 kB / 0.7941 GB, free: 5.328 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.01333, allocations: 208.9 kB / 0.7943 GB, free: 5.121 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.556e-05/0.01338, allocations: 39.64 kB / 0.7943 GB, free: 5.082 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.194e-05/0.01346, allocations: 47.36 kB / 0.7944 GB, free: 5.027 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001885/0.01365, allocations: 0.5157 MB / 0.7949 GB, free: 4.5 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.999e-05/0.01375, allocations: 53.69 kB / 0.7949 GB, free: 4.441 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.0139, allocations: 177.7 kB / 0.7951 GB, free: 4.227 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.0142, allocations: 153.7 kB / 0.7953 GB, free: 4.051 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.01421, allocations: 0 / 0.7953 GB, free: 4.051 MB / 0.7448 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003222/0.01453, allocations: 259.4 kB / 0.7955 GB, free: 3.781 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.581e-05/0.01458, allocations: 41.03 kB / 0.7955 GB, free: 3.738 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.01458, allocations: 0 / 0.7955 GB, free: 3.738 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.0146, allocations: 4 kB / 0.7956 GB, free: 3.734 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.01472, allocations: 27.92 kB / 0.7956 GB, free: 3.707 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.01472, allocations: 0 / 0.7956 GB, free: 3.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.179e-05/0.0148, allocations: 23.89 kB / 0.7956 GB, free: 3.684 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.01481, allocations: 8 kB / 0.7956 GB, free: 3.676 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.0001869/0.015, allocations: 201.8 kB / 0.7958 GB, free: 3.465 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.389e-05/0.01504, allocations: 37.73 kB / 0.7958 GB, free: 3.43 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.258e-05/0.01508, allocations: 29.7 kB / 0.7959 GB, free: 3.402 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.01509, allocations: 0 / 0.7959 GB, free: 3.402 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.01509, allocations: 0 / 0.7959 GB, free: 3.402 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.0151, allocations: 3.984 kB / 0.7959 GB, free: 3.398 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.01528, allocations: 226.7 kB / 0.7961 GB, free: 3.145 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.01528, allocations: 0 / 0.7961 GB, free: 3.145 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.017e-05/0.01536, allocations: 15.98 kB / 0.7961 GB, free: 3.129 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.01537, allocations: 3.938 kB / 0.7961 GB, free: 3.125 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.01538, allocations: 8 kB / 0.7961 GB, free: 3.117 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.01538, allocations: 0 / 0.7961 GB, free: 3.117 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.01538, allocations: 0.9062 kB / 0.7961 GB, free: 3.117 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.01576, allocations: 333.3 kB / 0.7964 GB, free: 2.75 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.729e-05/0.01579, allocations: 28.56 kB / 0.7965 GB, free: 2.723 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.87e-05/0.01582, allocations: 12 kB / 0.7965 GB, free: 2.711 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.943e-05/0.01587, allocations: 5.281 kB / 0.7965 GB, free: 2.707 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.488e-05/0.01595, allocations: 27.95 kB / 0.7965 GB, free: 2.68 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.01597, allocations: 7.984 kB / 0.7965 GB, free: 2.672 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001141/0.01608, allocations: 205.8 kB / 0.7967 GB, free: 2.469 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01608, allocations: 0 / 0.7967 GB, free: 2.469 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002064/0.01629, allocations: 62.7 kB / 0.7968 GB, free: 2.41 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.0001807/0.01647, allocations: 137.7 kB / 0.7969 GB, free: 2.266 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002496/0.01672, allocations: 226.4 kB / 0.7971 GB, free: 2.016 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.01672, allocations: 2.406 kB / 0.7971 GB, free: 2.016 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.01683, allocations: 148.7 kB / 0.7973 GB, free: 1.848 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002295/0.01706, allocations: 38.34 kB / 0.7973 GB, free: 1.812 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005818/0.01764, allocations: 420.4 kB / 0.7977 GB, free: 1.371 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.307e-05/0.01769, allocations: 84.88 kB / 0.7978 GB, free: 1.27 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.826e-05/0.01775, allocations: 20.22 kB / 0.7978 GB, free: 1.25 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.86e-05/0.01779, allocations: 25.97 kB / 0.7978 GB, free: 1.227 MB / 0.7448 GB Notification: Performance of SimCode: time 6.41e-07/0.01779, allocations: 3.938 kB / 0.7978 GB, free: 1.223 MB / 0.7448 GB Notification: Performance of Templates: time 0.004937/0.02272, allocations: 2.904 MB / 0.8007 GB, free: 14.38 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.904832035070285]