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.001287/0.001287, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 196 kB / 16.53 MB, free: 6.625 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.443/1.443, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.892/2.892, allocations: 472.6 MB / 0.7451 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 71.42 kB / 0.912 GB, free: 33.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3867, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004221/0.3909, allocations: 1.952 MB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00167/0.3926, allocations: 0.7089 MB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002345/0.3929, allocations: 4 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.3933, allocations: 91.62 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001959/0.3935, allocations: 91.56 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007364/0.3942, allocations: 186.8 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003938/0.3946, allocations: 263.2 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.3948, allocations: 78.08 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.3951, allocations: 115.7 kB / 1.072 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.3953, allocations: 147.5 kB / 1.072 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.719e-05/0.3954, allocations: 24 kB / 1.072 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.3956, allocations: 91.94 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.3957, allocations: 55.77 kB / 1.072 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000182/0.3959, allocations: 111.4 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005282/0.3964, allocations: 291.1 kB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.3965, allocations: 3.984 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.334e-06/0.3965, allocations: 0 / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.364e-05/0.3965, allocations: 0 / 1.072 GB, free: 6.246 MB / 0.8262 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.0009799/0.3975, allocations: 0.5819 MB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.3975, allocations: 8.031 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.461e-05/0.3976, allocations: 32.56 kB / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.3981, allocations: 294.9 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.3981, allocations: 16.38 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.789e-05/0.3981, allocations: 12.38 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003945/0.3986, allocations: 235.8 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.3986, allocations: 3.938 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.562e-05/0.3986, allocations: 4 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.3986, allocations: 7.938 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002457/0.3989, allocations: 124.4 kB / 1.074 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008698/0.3998, allocations: 0.6962 MB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.4002, allocations: 166.6 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.4003, allocations: 96.81 kB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.4004, allocations: 4 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003453/0.4008, allocations: 173.1 kB / 1.075 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.4008, allocations: 0 / 1.075 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006838/0.4015, allocations: 364.8 kB / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.814e-05/0.4016, allocations: 144.4 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.4018, allocations: 274.6 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.4019, allocations: 41.69 kB / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.402, allocations: 156.2 kB / 1.076 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.112e-05/0.4021, allocations: 47.34 kB / 1.076 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.049e-05/0.4021, allocations: 41.7 kB / 1.076 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.4023, allocations: 334.8 kB / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.4025, allocations: 87.91 kB / 1.076 GB, free: 2.078 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.4026, allocations: 134 kB / 1.076 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.403, allocations: 240.4 kB / 1.076 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.403, allocations: 4 kB / 1.076 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004837/0.4035, allocations: 344.9 kB / 1.077 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/0.4036, allocations: 37.7 kB / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.4036, allocations: 0 / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.4036, allocations: 4 kB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.4037, allocations: 23.92 kB / 1.077 GB, free: 1.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.4037, allocations: 0 / 1.077 GB, free: 1.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.4039, allocations: 27.83 kB / 1.077 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.4039, allocations: 16.08 kB / 1.077 GB, free: 1.207 MB / 0.8262 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.000183/0.4041, allocations: 187.4 kB / 1.077 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.403e-05/0.4042, allocations: 27.66 kB / 1.077 GB, free: 0.9805 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.723e-05/0.4042, allocations: 33.83 kB / 1.077 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.4043, allocations: 0 / 1.077 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4043, allocations: 0 / 1.077 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4043, allocations: 0 / 1.077 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002727/0.4045, allocations: 293.3 kB / 1.077 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.4046, allocations: 8 kB / 1.077 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.4047, allocations: 16.08 kB / 1.077 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4047, allocations: 3.938 kB / 1.077 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.4047, allocations: 4 kB / 1.077 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.4047, allocations: 3.984 kB / 1.077 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4047, allocations: 0 / 1.077 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006968/0.4054, allocations: 476.6 kB / 1.078 GB, free: 92 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.404e-05/0.4055, allocations: 96.86 kB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.481e-05/0.4056, allocations: 11.98 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.4057, allocations: 11.98 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.565e-05/0.4058, allocations: 19.97 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.4058, allocations: 12 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001828/0.406, allocations: 201.9 kB / 1.078 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.406, allocations: 0 / 1.078 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002829/0.4063, allocations: 55.84 kB / 1.078 GB, free: 15.67 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.0002204/0.4065, allocations: 139.8 kB / 1.078 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004951/0.407, allocations: 291.2 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.407, allocations: 4 kB / 1.079 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.4073, allocations: 187.3 kB / 1.079 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.4076, allocations: 36.72 kB / 1.079 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.4086, allocations: 485.2 kB / 1.079 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.4089, allocations: 0.7553 MB / 1.08 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.129e-05/0.409, allocations: 17.55 kB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.408e-05/0.4091, allocations: 19.38 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.4091, allocations: 0 / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of Templates: time 0.006131/0.4152, allocations: 2.835 MB / 1.083 GB, free: 10.86 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=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","/var/lib/jenkins/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