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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00153/0.00153, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001472/0.001472, allocations: 187.6 kB / 17.2 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.666/2.666, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 69.48 kB / 0.9245 GB, free: 28 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7799/0.7817, allocations: 162.2 MB / 1.083 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003227/0.785, allocations: 1.957 MB / 1.085 GB, free: 300 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.7863, allocations: 0.705 MB / 1.086 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.7864, allocations: 6.969 kB / 1.086 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00026/0.7867, allocations: 85.8 kB / 1.086 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.7868, allocations: 86.62 kB / 1.086 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006244/0.7875, allocations: 187.9 kB / 1.086 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003778/0.7879, allocations: 265.5 kB / 1.086 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.788, allocations: 69.22 kB / 1.086 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.7882, allocations: 117.2 kB / 1.086 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.7884, allocations: 149.3 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.57e-05/0.7885, allocations: 20.16 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.7887, allocations: 95.36 kB / 1.087 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.743e-05/0.7888, allocations: 63.92 kB / 1.087 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.7889, allocations: 101.1 kB / 1.087 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004367/0.7894, allocations: 302.6 kB / 1.087 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.7894, allocations: 0 / 1.087 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.292e-06/0.7894, allocations: 0 / 1.087 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.7894, allocations: 5.438 kB / 1.087 GB, free: 15.14 MB / 0.8419 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.0009371/0.7903, allocations: 0.5787 MB / 1.088 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.7904, allocations: 10.48 kB / 1.088 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.963e-05/0.7905, allocations: 30.91 kB / 1.088 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004882/0.791, allocations: 301.4 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.791, allocations: 15.97 kB / 1.088 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.791, allocations: 13.62 kB / 1.088 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004304/0.7915, allocations: 233.7 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.7915, allocations: 0 / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/0.7915, allocations: 6.656 kB / 1.088 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.7915, allocations: 7 kB / 1.088 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002802/0.7918, allocations: 132.4 kB / 1.088 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009659/0.7928, allocations: 0.6816 MB / 1.089 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003719/0.7932, allocations: 176.3 kB / 1.089 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.7934, allocations: 92.77 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.7934, allocations: 1.375 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003703/0.7938, allocations: 173.5 kB / 1.089 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.7938, allocations: 3.938 kB / 1.089 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0007342/0.7945, allocations: 371.6 kB / 1.09 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.512e-05/0.7946, allocations: 133.5 kB / 1.09 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003303/0.795, allocations: 278.9 kB / 1.09 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.795, allocations: 32.75 kB / 1.09 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.7951, allocations: 160.3 kB / 1.09 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.245e-05/0.7952, allocations: 44.16 kB / 1.09 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.988e-05/0.7953, allocations: 42.97 kB / 1.09 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.7954, allocations: 337.4 kB / 1.091 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.7956, allocations: 85.52 kB / 1.091 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.7959, allocations: 138.9 kB / 1.091 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003537/0.7962, allocations: 237.4 kB / 1.091 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.7962, allocations: 1.062 kB / 1.091 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005432/0.7968, allocations: 337.9 kB / 1.091 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.808e-05/0.7968, allocations: 36.81 kB / 1.091 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.7969, allocations: 1.438 kB / 1.092 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.7969, allocations: 1.547 kB / 1.092 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.797, allocations: 26.14 kB / 1.092 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.423e-06/0.797, allocations: 1.5 kB / 1.092 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.7972, allocations: 29.7 kB / 1.092 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.7972, allocations: 6.875 kB / 1.092 GB, free: 11.94 MB / 0.8419 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.0001923/0.7974, allocations: 198.3 kB / 1.092 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.21e-05/0.7974, allocations: 29.72 kB / 1.092 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.011e-05/0.7975, allocations: 30.59 kB / 1.092 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.7975, allocations: 2.297 kB / 1.092 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.7975, allocations: 0 / 1.092 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.7975, allocations: 0.6562 kB / 1.092 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003003/0.7978, allocations: 289 kB / 1.092 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.7978, allocations: 0 / 1.092 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.7979, allocations: 24.39 kB / 1.092 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.798, allocations: 0.8125 kB / 1.092 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.798, allocations: 8.016 kB / 1.092 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.798, allocations: 4.797 kB / 1.092 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.798, allocations: 1.125 kB / 1.092 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007583/0.7988, allocations: 472.6 kB / 1.093 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.943e-05/0.7989, allocations: 100.2 kB / 1.093 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.403e-05/0.7989, allocations: 9.719 kB / 1.093 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.799, allocations: 11.16 kB / 1.093 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.367e-05/0.7991, allocations: 28.23 kB / 1.093 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.7991, allocations: 5.359 kB / 1.093 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002102/0.7993, allocations: 202.7 kB / 1.093 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7994, allocations: 0 / 1.093 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000302/0.7997, allocations: 57.42 kB / 1.093 GB, free: 11.03 MB / 0.8419 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.000216/0.7999, allocations: 139.6 kB / 1.093 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005398/0.8004, allocations: 299.2 kB / 1.093 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.8004, allocations: 4.562 kB / 1.093 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.8007, allocations: 177.9 kB / 1.094 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.801, allocations: 39.25 kB / 1.094 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.8021, allocations: 0.5026 MB / 1.094 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.8025, allocations: 0.7505 MB / 1.095 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.082e-05/0.8026, allocations: 23.89 kB / 1.095 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.8026, allocations: 0 / 1.095 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of Templates: time 0.005897/0.8085, allocations: 2.99 MB / 1.098 GB, free: 9.324 MB / 0.8419 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=400 -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches