Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.00683/0.00683, allocations: 96.73 kB / 15.73 MB, free: 6.055 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.001342/0.001342, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.934/2.934, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 67.83 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.4001, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.006048/0.4062, allocations: 1.954 MB / 1.223 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002181/0.4084, allocations: 0.7052 MB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.4086, allocations: 4 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00026/0.4088, allocations: 83.64 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001839/0.409, allocations: 95.55 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006914/0.4097, allocations: 190.9 kB / 1.224 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.4101, allocations: 259.4 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.4103, allocations: 48.44 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.4105, allocations: 119.6 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.4107, allocations: 147.5 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.414e-05/0.4108, allocations: 23.98 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.4109, allocations: 95.92 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.36e-05/0.411, allocations: 55.77 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.4111, allocations: 99.42 kB / 1.224 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004374/0.4116, allocations: 322.6 kB / 1.225 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.4116, allocations: 4 kB / 1.225 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4116, allocations: 0 / 1.225 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.502e-05/0.4116, allocations: 0 / 1.225 GB, free: 9.609 MB / 0.9825 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.0009292/0.4125, allocations: 0.5871 MB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.4125, allocations: 12.03 kB / 1.225 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.624e-05/0.4126, allocations: 28.8 kB / 1.225 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005391/0.4132, allocations: 318.9 kB / 1.226 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.4132, allocations: 16.38 kB / 1.226 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.4132, allocations: 12.38 kB / 1.226 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003967/0.4136, allocations: 231.7 kB / 1.226 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.4136, allocations: 0 / 1.226 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.4136, allocations: 4 kB / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.4137, allocations: 4 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002581/0.4139, allocations: 132.3 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008737/0.4148, allocations: 0.6926 MB / 1.227 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003488/0.4151, allocations: 158.3 kB / 1.227 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.4153, allocations: 92.95 kB / 1.227 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.4153, allocations: 4 kB / 1.227 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.4156, allocations: 165.1 kB / 1.227 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.4156, allocations: 0 / 1.227 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0006861/0.4163, allocations: 371 kB / 1.227 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.709e-05/0.4164, allocations: 140.5 kB / 1.228 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.4167, allocations: 286.7 kB / 1.228 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.4167, allocations: 29.7 kB / 1.228 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.4168, allocations: 156.3 kB / 1.228 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/0.4169, allocations: 43.62 kB / 1.228 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.435e-05/0.4169, allocations: 41.66 kB / 1.228 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.4171, allocations: 338.8 kB / 1.228 GB, free: 5.52 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.4173, allocations: 99.83 kB / 1.228 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.4175, allocations: 130 kB / 1.229 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.4178, allocations: 240.6 kB / 1.229 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4178, allocations: 0 / 1.229 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005204/0.4183, allocations: 335 kB / 1.229 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.098e-05/0.4184, allocations: 33.7 kB / 1.229 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4184, allocations: 3.984 kB / 1.229 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.4184, allocations: 4 kB / 1.229 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.4185, allocations: 32.02 kB / 1.229 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.4185, allocations: 4 kB / 1.229 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.4186, allocations: 19.88 kB / 1.229 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.4187, allocations: 8 kB / 1.229 GB, free: 4.57 MB / 0.9825 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.0001788/0.4188, allocations: 192 kB / 1.229 GB, free: 4.367 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.4189, allocations: 31.84 kB / 1.229 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.378e-05/0.4189, allocations: 21.84 kB / 1.23 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.4189, allocations: 4 kB / 1.23 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4189, allocations: 4.094 kB / 1.23 GB, free: 4.305 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.4189, allocations: 7.922 kB / 1.23 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.4192, allocations: 289.4 kB / 1.23 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4192, allocations: 0 / 1.23 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.4193, allocations: 23.92 kB / 1.23 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.4193, allocations: 0 / 1.23 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.4193, allocations: 7.984 kB / 1.23 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.4193, allocations: 0 / 1.23 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4193, allocations: 0 / 1.23 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007299/0.4201, allocations: 471.9 kB / 1.23 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.376e-05/0.4201, allocations: 104.9 kB / 1.23 GB, free: 3.328 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.544e-05/0.4202, allocations: 12 kB / 1.23 GB, free: 3.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.4203, allocations: 11.98 kB / 1.23 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.605e-05/0.4204, allocations: 23.95 kB / 1.23 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.4204, allocations: 4 kB / 1.23 GB, free: 3.277 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000194/0.4206, allocations: 210 kB / 1.231 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.4206, allocations: 0 / 1.231 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002872/0.4209, allocations: 55.94 kB / 1.231 GB, free: 3.02 MB / 0.9825 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.0002605/0.4211, allocations: 135.1 kB / 1.231 GB, free: 2.879 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005207/0.4217, allocations: 255.4 kB / 1.231 GB, free: 2.617 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4217, allocations: 4 kB / 1.231 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.4219, allocations: 159.3 kB / 1.231 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.4222, allocations: 38.27 kB / 1.231 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.4234, allocations: 484.5 kB / 1.232 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.4239, allocations: 0.7553 MB / 1.232 GB, free: 1.125 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.254e-05/0.424, allocations: 17.55 kB / 1.232 GB, free: 1.109 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.011e-05/0.424, allocations: 15.44 kB / 1.232 GB, free: 1.094 MB / 0.9825 GB Notification: Performance of SimCode: time 5.81e-07/0.424, allocations: 3.938 kB / 1.232 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of Templates: time 0.007427/0.4315, allocations: 2.861 MB / 1.235 GB, free: 14.25 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches