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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.662/2.662, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000383/0.000383, allocations: 8 kB / 0.8708 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8979/0.8983, allocations: 153.7 MB / 1.021 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002242/0.9006, allocations: 1.608 MB / 1.022 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001092/0.9017, allocations: 0.655 MB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.137e-05/0.9018, allocations: 0 / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.902, allocations: 67.77 kB / 1.023 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.9022, allocations: 95.72 kB / 1.023 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004502/0.9026, allocations: 122.6 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00022/0.9029, allocations: 151.7 kB / 1.023 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.903, allocations: 61.48 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.9031, allocations: 95.66 kB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.9033, allocations: 107.6 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.9033, allocations: 4 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.9035, allocations: 67.88 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.56e-05/0.9035, allocations: 47.81 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.632e-05/0.9036, allocations: 69.52 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.9038, allocations: 213.5 kB / 1.024 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.9038, allocations: 0 / 1.024 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9038, allocations: 0 / 1.024 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.9038, allocations: 0 / 1.024 GB, free: 13.74 MB / 0.7794 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.0007895/0.9046, allocations: 0.5429 MB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.9047, allocations: 11.98 kB / 1.025 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.142e-05/0.9047, allocations: 27.72 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004453/0.9052, allocations: 305.5 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.9052, allocations: 12 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.601e-05/0.9053, allocations: 23.86 kB / 1.025 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003958/0.9057, allocations: 227.1 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.9057, allocations: 4 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.9057, allocations: 4 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.9057, allocations: 4 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.906, allocations: 128.4 kB / 1.025 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008432/0.9068, allocations: 0.6886 MB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003767/0.9072, allocations: 182.6 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.321e-05/0.9072, allocations: 8.031 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003244/0.9076, allocations: 169 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.9076, allocations: 0 / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0007316/0.9083, allocations: 475.9 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/0.9084, allocations: 128.5 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00027/0.9087, allocations: 278.7 kB / 1.027 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.9087, allocations: 33.7 kB / 1.027 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.9089, allocations: 160.2 kB / 1.027 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.9089, allocations: 35.47 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.087e-05/0.909, allocations: 4 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.9091, allocations: 338.8 kB / 1.028 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.9093, allocations: 88.16 kB / 1.028 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.9095, allocations: 133.5 kB / 1.028 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.9098, allocations: 129.6 kB / 1.028 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.9098, allocations: 0 / 1.028 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005477/0.9103, allocations: 336.3 kB / 1.028 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.632e-05/0.9104, allocations: 37.69 kB / 1.028 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.9104, allocations: 4 kB / 1.028 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.9104, allocations: 4.047 kB / 1.028 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.9106, allocations: 27.92 kB / 1.028 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.9106, allocations: 7.938 kB / 1.028 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.9107, allocations: 27.83 kB / 1.028 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.9108, allocations: 12.09 kB / 1.028 GB, free: 8.879 MB / 0.7794 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001923/0.911, allocations: 189.1 kB / 1.029 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.911, allocations: 27.72 kB / 1.029 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.394e-05/0.9111, allocations: 29.83 kB / 1.029 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.9111, allocations: 0 / 1.029 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.9111, allocations: 3.953 kB / 1.029 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.9111, allocations: 0 / 1.029 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.9114, allocations: 301.3 kB / 1.029 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.9114, allocations: 4 kB / 1.029 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.9115, allocations: 19.92 kB / 1.029 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.9115, allocations: 0 / 1.029 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.9116, allocations: 4 kB / 1.029 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.9116, allocations: 0 / 1.029 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.9116, allocations: 0 / 1.029 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007356/0.9123, allocations: 481 kB / 1.03 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.46e-05/0.9124, allocations: 100.8 kB / 1.03 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.157e-05/0.9124, allocations: 8 kB / 1.03 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.9126, allocations: 15.98 kB / 1.03 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.476e-05/0.9127, allocations: 31.95 kB / 1.03 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.9127, allocations: 11.98 kB / 1.03 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001855/0.9129, allocations: 201.9 kB / 1.03 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9129, allocations: 0 / 1.03 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002867/0.9132, allocations: 60.03 kB / 1.03 GB, free: 7.32 MB / 0.7794 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 (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.0001897/0.9134, allocations: 131.2 kB / 1.03 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005841/0.914, allocations: 303.2 kB / 1.03 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.914, allocations: 4 kB / 1.03 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.9142, allocations: 187.3 kB / 1.031 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.9145, allocations: 32.73 kB / 1.031 GB, free: 6.645 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009355/0.9154, allocations: 0.5149 MB / 1.031 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.9157, allocations: 0.7558 MB / 1.032 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.43e-05/0.9158, allocations: 25.48 kB / 1.032 GB, free: 5.301 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.125e-05/0.9159, allocations: 19.44 kB / 1.032 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.9159, allocations: 0 / 1.032 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of Templates: time 0.005444/0.9213, allocations: 2.448 MB / 1.034 GB, free: 2.848 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches