Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.01038/0.01038, allocations: 101.2 kB / 15.73 MB, free: 6.027 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.002105/0.002105, allocations: 194.7 kB / 16.67 MB, free: 5.961 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.501/1.501, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.638/2.638, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 66.52 kB / 0.9508 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3608, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003624/0.3645, allocations: 1.953 MB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.3658, allocations: 0.7052 MB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.366, allocations: 4 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002814/0.3663, allocations: 83.62 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.3664, allocations: 95.58 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006328/0.3671, allocations: 175.7 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003625/0.3675, allocations: 271.4 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.3677, allocations: 81.55 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.3678, allocations: 115.7 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.368, allocations: 151.5 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.808e-05/0.3681, allocations: 23.94 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001659/0.3682, allocations: 91.94 kB / 1.092 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.3684, allocations: 63.77 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.3685, allocations: 103.4 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004539/0.369, allocations: 314.7 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.369, allocations: 3.984 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.335e-06/0.369, allocations: 0 / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.369, allocations: 4 kB / 1.092 GB, free: 13.29 MB / 0.8575 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.0009769/0.37, allocations: 0.5777 MB / 1.093 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.37, allocations: 12.03 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.685e-05/0.3701, allocations: 32.75 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005407/0.3707, allocations: 307.1 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.3707, allocations: 12.38 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.3708, allocations: 12.38 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004197/0.3712, allocations: 231.8 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3712, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.3712, allocations: 4 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.3712, allocations: 7.984 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002582/0.3715, allocations: 132.3 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009172/0.3724, allocations: 0.677 MB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003816/0.3728, allocations: 170.4 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.373, allocations: 100.9 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.373, allocations: 0 / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003077/0.3734, allocations: 173.1 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.3734, allocations: 3.938 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0007153/0.3741, allocations: 377 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.3742, allocations: 132.5 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.3745, allocations: 282.6 kB / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.3745, allocations: 29.7 kB / 1.095 GB, free: 9.797 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.3746, allocations: 164.3 kB / 1.095 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.569e-05/0.3747, allocations: 43.64 kB / 1.095 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.277e-05/0.3748, allocations: 41.7 kB / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3749, allocations: 334.8 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.3751, allocations: 91.89 kB / 1.096 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.3753, allocations: 133 kB / 1.096 GB, free: 8.969 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.3757, allocations: 244.1 kB / 1.096 GB, free: 8.707 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3757, allocations: 0 / 1.096 GB, free: 8.707 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005071/0.3762, allocations: 335 kB / 1.097 GB, free: 8.367 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.3763, allocations: 39.5 kB / 1.097 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3763, allocations: 3.938 kB / 1.097 GB, free: 8.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.3763, allocations: 4 kB / 1.097 GB, free: 8.316 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.3764, allocations: 28.02 kB / 1.097 GB, free: 8.289 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.3765, allocations: 4 kB / 1.097 GB, free: 8.285 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/0.3766, allocations: 23.88 kB / 1.097 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.3766, allocations: 12 kB / 1.097 GB, free: 8.25 MB / 0.8575 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.000187/0.3768, allocations: 192.9 kB / 1.097 GB, free: 8.047 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.3769, allocations: 27.81 kB / 1.097 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.971e-05/0.3769, allocations: 33.83 kB / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.3769, allocations: 4 kB / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.3769, allocations: 0 / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.377, allocations: 0 / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002737/0.3772, allocations: 293.4 kB / 1.097 GB, free: 7.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3772, allocations: 3.938 kB / 1.097 GB, free: 7.645 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.3774, allocations: 19.92 kB / 1.097 GB, free: 7.625 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3774, allocations: 0 / 1.097 GB, free: 7.625 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.3774, allocations: 8 kB / 1.097 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3774, allocations: 0 / 1.097 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3774, allocations: 0 / 1.097 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007446/0.3782, allocations: 474.4 kB / 1.098 GB, free: 7.129 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.855e-05/0.3782, allocations: 96.94 kB / 1.098 GB, free: 7.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.409e-05/0.3783, allocations: 8 kB / 1.098 GB, free: 7.008 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.3784, allocations: 11.98 kB / 1.098 GB, free: 6.996 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.411e-05/0.3785, allocations: 27.97 kB / 1.098 GB, free: 6.969 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.3785, allocations: 12.05 kB / 1.098 GB, free: 6.957 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001949/0.3787, allocations: 202 kB / 1.098 GB, free: 6.762 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3787, allocations: 0 / 1.098 GB, free: 6.762 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002831/0.379, allocations: 59.89 kB / 1.098 GB, free: 6.703 MB / 0.8575 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.0002206/0.3792, allocations: 128.8 kB / 1.098 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004961/0.3798, allocations: 299.4 kB / 1.098 GB, free: 6.266 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3798, allocations: 0 / 1.098 GB, free: 6.266 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.38, allocations: 183.3 kB / 1.099 GB, free: 6.074 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.3803, allocations: 36.7 kB / 1.099 GB, free: 6.039 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.3814, allocations: 483.6 kB / 1.099 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.3817, allocations: 0.7514 MB / 1.1 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.667e-05/0.3818, allocations: 17.55 kB / 1.1 GB, free: 4.742 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.712e-05/0.3819, allocations: 15.44 kB / 1.1 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of SimCode: time 3.7e-07/0.3819, allocations: 0 / 1.1 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of Templates: time 0.006401/0.3883, allocations: 2.851 MB / 1.103 GB, free: 1.895 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches