Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001696/0.001696, allocations: 105.5 kB / 16.41 MB, free: 6.488 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.001936/0.001936, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.612/2.612, allocations: 437 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 64.12 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8891/0.8905, allocations: 151.6 MB / 1.167 GB, free: 3.867 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003585/0.8941, allocations: 1.958 MB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.8956, allocations: 0.7091 MB / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.8958, allocations: 4 kB / 1.17 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.8961, allocations: 79.64 kB / 1.17 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.8963, allocations: 95.58 kB / 1.17 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006972/0.897, allocations: 189 kB / 1.17 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003832/0.8974, allocations: 263.4 kB / 1.17 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.8976, allocations: 69.69 kB / 1.171 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.8978, allocations: 119.6 kB / 1.171 GB, free: 396 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.898, allocations: 147.5 kB / 1.171 GB, free: 248 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.8981, allocations: 20 kB / 1.171 GB, free: 228 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.8983, allocations: 103.9 kB / 1.171 GB, free: 124 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.09e-05/0.8984, allocations: 47.84 kB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.8985, allocations: 115.3 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004144/0.8989, allocations: 299 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.8989, allocations: 4 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.218e-06/0.899, allocations: 0 / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.899, allocations: 11.81 kB / 1.171 GB, free: 15.65 MB / 0.9044 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.0009714/0.8999, allocations: 0.572 MB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.9, allocations: 16.91 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.522e-05/0.9001, allocations: 28.56 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005412/0.9006, allocations: 298.9 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.9007, allocations: 20.38 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.784e-05/0.9007, allocations: 12.38 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003935/0.9011, allocations: 227.3 kB / 1.173 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.9011, allocations: 3.938 kB / 1.173 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.9012, allocations: 4 kB / 1.173 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.9012, allocations: 4 kB / 1.173 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.9014, allocations: 132.4 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008927/0.9023, allocations: 0.6768 MB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.9027, allocations: 166.5 kB / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.9029, allocations: 101 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.9029, allocations: 0 / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.9032, allocations: 177.1 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.9032, allocations: 0 / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15): time 0.0006739/0.9039, allocations: 380 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.374e-05/0.904, allocations: 136.5 kB / 1.174 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.9042, allocations: 278.6 kB / 1.175 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.9043, allocations: 33.7 kB / 1.175 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.9044, allocations: 148.3 kB / 1.175 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.024e-05/0.9045, allocations: 55.3 kB / 1.175 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.784e-05/0.9046, allocations: 41.7 kB / 1.175 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.9047, allocations: 334.8 kB / 1.175 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.9049, allocations: 91.89 kB / 1.175 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.9051, allocations: 126.6 kB / 1.175 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003238/0.9054, allocations: 248.9 kB / 1.176 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.9054, allocations: 0 / 1.176 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000497/0.9059, allocations: 331 kB / 1.176 GB, free: 10.76 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.498e-05/0.906, allocations: 37.69 kB / 1.176 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.906, allocations: 4 kB / 1.176 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.906, allocations: 0 / 1.176 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.9061, allocations: 27.92 kB / 1.176 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.9062, allocations: 0 / 1.176 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.9063, allocations: 23.83 kB / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.819e-05/0.9063, allocations: 8 kB / 1.176 GB, free: 10.65 MB / 0.9044 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.0002004/0.9065, allocations: 205.7 kB / 1.176 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.138e-05/0.9066, allocations: 27.66 kB / 1.176 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.045e-05/0.9066, allocations: 33.83 kB / 1.176 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.9066, allocations: 0 / 1.176 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.9067, allocations: 0 / 1.176 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.9067, allocations: 0 / 1.176 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002651/0.9069, allocations: 297.5 kB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.9069, allocations: 0 / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.9071, allocations: 15.98 kB / 1.176 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.9071, allocations: 4 kB / 1.177 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.9071, allocations: 4 kB / 1.177 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.9071, allocations: 0 / 1.177 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.9071, allocations: 4 kB / 1.177 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006901/0.9078, allocations: 472.2 kB / 1.177 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.691e-05/0.9079, allocations: 100.8 kB / 1.177 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.373e-05/0.9079, allocations: 8 kB / 1.177 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.9081, allocations: 16.05 kB / 1.177 GB, free: 9.383 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.043e-05/0.9082, allocations: 23.95 kB / 1.177 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.9082, allocations: 8 kB / 1.177 GB, free: 9.352 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001766/0.9084, allocations: 198 kB / 1.177 GB, free: 9.16 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.9084, allocations: 0 / 1.177 GB, free: 9.16 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003064/0.9087, allocations: 59.91 kB / 1.177 GB, free: 9.102 MB / 0.9044 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.0002184/0.9089, allocations: 153.3 kB / 1.178 GB, free: 8.945 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004947/0.9094, allocations: 291.2 kB / 1.178 GB, free: 8.648 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.9094, allocations: 0 / 1.178 GB, free: 8.648 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.9097, allocations: 183.4 kB / 1.178 GB, free: 8.457 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.91, allocations: 34.88 kB / 1.178 GB, free: 8.426 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.9111, allocations: 0.4991 MB / 1.178 GB, free: 7.887 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.9114, allocations: 0.7517 MB / 1.179 GB, free: 7.109 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.619e-05/0.9115, allocations: 23.42 kB / 1.179 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/0.9115, allocations: 0 / 1.179 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of Templates: time 0.005732/0.9172, allocations: 2.997 MB / 1.182 GB, free: 4.094 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches