Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.445/1.445, allocations: 249.5 MB / 257 MB, free: 7.023 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 187.4 kB / 316.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.3 MB / 0.5671 GB, free: 15.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008756/0.0008756, allocations: 96.11 kB / 0.6714 GB, free: 4.992 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.607e-05/1.611e-05, allocations: 7.984 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1919, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6833/0.8752, allocations: 135.1 MB / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.8755, allocations: 87.67 kB / 1.017 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01636/0.8919, allocations: 5.803 MB / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.303e-06/0.8919, allocations: 0 / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.516e-05/0.8919, allocations: 4 kB / 1.023 GB, free: 13.88 MB / 0.6511 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.0008742/0.8928, allocations: 0.5418 MB / 1.023 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.8929, allocations: 12.03 kB / 1.023 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.124e-05/0.893, allocations: 39.56 kB / 1.023 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004499/0.8934, allocations: 284.8 kB / 1.024 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.8935, allocations: 8 kB / 1.024 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.116e-05/0.8935, allocations: 8 kB / 1.024 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002486/0.8938, allocations: 126.5 kB / 1.024 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.8941, allocations: 232.8 kB / 1.024 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.8941, allocations: 0 / 1.024 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.8942, allocations: 0 / 1.024 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.8942, allocations: 4 kB / 1.024 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008798/0.8951, allocations: 0.6928 MB / 1.025 GB, free: 12 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.8953, allocations: 152.6 kB / 1.025 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.8954, allocations: 103.9 kB / 1.025 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.8955, allocations: 0 / 1.025 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.8957, allocations: 178.6 kB / 1.025 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.8957, allocations: 0 / 1.025 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0005441/0.8962, allocations: 305.8 kB / 1.025 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/0.8963, allocations: 136.1 kB / 1.026 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.8965, allocations: 226.3 kB / 1.026 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.8966, allocations: 29.7 kB / 1.026 GB, free: 11 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.932e-05/0.8967, allocations: 155.6 kB / 1.026 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.778e-05/0.8967, allocations: 39.55 kB / 1.026 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/0.8967, allocations: 0 / 1.026 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.8969, allocations: 341.3 kB / 1.026 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.897, allocations: 92.28 kB / 1.026 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.8972, allocations: 145.1 kB / 1.027 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.8973, allocations: 94.97 kB / 1.027 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.8973, allocations: 0 / 1.027 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004597/0.8978, allocations: 328.2 kB / 1.027 GB, free: 9.984 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.784e-05/0.8978, allocations: 41.75 kB / 1.027 GB, free: 9.938 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.8978, allocations: 4 kB / 1.027 GB, free: 9.934 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.8979, allocations: 4 kB / 1.027 GB, free: 9.93 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.898, allocations: 27.92 kB / 1.027 GB, free: 9.902 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.898, allocations: 4 kB / 1.027 GB, free: 9.898 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.8982, allocations: 43.81 kB / 1.027 GB, free: 9.855 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.8983, allocations: 11.92 kB / 1.027 GB, free: 9.848 MB / 0.6511 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001128/0.8984, allocations: 147 kB / 1.027 GB, free: 9.695 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.808e-05/0.8984, allocations: 27.67 kB / 1.027 GB, free: 9.668 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.116e-05/0.8985, allocations: 24.52 kB / 1.027 GB, free: 9.648 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.8985, allocations: 0 / 1.027 GB, free: 9.648 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.8985, allocations: 4 kB / 1.027 GB, free: 9.645 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.8985, allocations: 3.984 kB / 1.027 GB, free: 9.641 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002013/0.8987, allocations: 266.3 kB / 1.028 GB, free: 9.387 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.8987, allocations: 0 / 1.028 GB, free: 9.387 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.8988, allocations: 23.92 kB / 1.028 GB, free: 9.363 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.8989, allocations: 0 / 1.028 GB, free: 9.363 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.8989, allocations: 7.984 kB / 1.028 GB, free: 9.355 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.8989, allocations: 7.953 kB / 1.028 GB, free: 9.348 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.8989, allocations: 0 / 1.028 GB, free: 9.348 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006652/0.8996, allocations: 491.1 kB / 1.028 GB, free: 8.957 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.692e-05/0.8996, allocations: 92.86 kB / 1.028 GB, free: 8.848 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.725e-05/0.8997, allocations: 4 kB / 1.028 GB, free: 8.844 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.8999, allocations: 35.91 kB / 1.028 GB, free: 8.809 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.806e-05/0.8999, allocations: 33.72 kB / 1.028 GB, free: 8.781 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.9, allocations: 19.3 kB / 1.028 GB, free: 8.766 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000148/0.9001, allocations: 176.6 kB / 1.028 GB, free: 8.617 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9001, allocations: 3.938 kB / 1.028 GB, free: 8.613 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002798/0.9004, allocations: 59.84 kB / 1.029 GB, free: 8.555 MB / 0.6511 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002062/0.9006, allocations: 140.8 kB / 1.029 GB, free: 8.414 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003137/0.901, allocations: 256.2 kB / 1.029 GB, free: 8.219 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.901, allocations: 192 / 1.029 GB, free: 8.219 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.9011, allocations: 180.8 kB / 1.029 GB, free: 8.074 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.9014, allocations: 27.5 kB / 1.029 GB, free: 8.055 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007639/0.9021, allocations: 343.3 kB / 1.029 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.9025, allocations: 0.7662 MB / 1.03 GB, free: 6.945 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.853e-05/0.9026, allocations: 13.2 kB / 1.03 GB, free: 6.934 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.9026, allocations: 15.44 kB / 1.03 GB, free: 6.918 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/0.9026, allocations: 0 / 1.03 GB, free: 6.918 MB / 0.6511 GB Notification: Performance of Templates: time 0.005061/0.9077, allocations: 2.343 MB / 1.032 GB, free: 4.613 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches