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.00154/0.00154, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001398/0.001398, allocations: 192.2 kB / 16.13 MB, free: 6.691 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.403/1.403, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.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.774/2.774, allocations: 437 MB / 0.7099 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.89 kB / 0.8685 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7521/0.7534, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003018/0.7565, allocations: 2.016 MB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.7576, allocations: 0.7208 MB / 1.019 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.648e-05/0.7577, allocations: 7.938 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.758, allocations: 83.89 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.7581, allocations: 79.7 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004885/0.7586, allocations: 154.3 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000234/0.7588, allocations: 235.4 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.759, allocations: 71.7 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.7591, allocations: 103.6 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.7593, allocations: 139.5 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.126e-05/0.7593, allocations: 11.98 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.7595, allocations: 83.86 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.219e-05/0.7595, allocations: 47.83 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.272e-05/0.7596, allocations: 95.36 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.7599, allocations: 291 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.7599, allocations: 0 / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.52e-07/0.76, allocations: 0 / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.76, allocations: 0 / 1.021 GB, free: 14.66 MB / 0.7794 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.0007839/0.7608, allocations: 0.582 MB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.7608, allocations: 8.031 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.237e-05/0.7609, allocations: 28.66 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.7613, allocations: 302.8 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.7613, allocations: 12.38 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.7613, allocations: 20.31 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003657/0.7617, allocations: 223.3 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.7617, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.7618, allocations: 4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.7618, allocations: 4 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.762, allocations: 138 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008087/0.7628, allocations: 0.6731 MB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/0.7632, allocations: 170.4 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.7634, allocations: 96.95 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.7634, allocations: 8 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.7637, allocations: 173 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.7637, allocations: 3.938 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0006536/0.7644, allocations: 377.7 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/0.7645, allocations: 132.5 kB / 1.023 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002495/0.7647, allocations: 282.7 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.7648, allocations: 33.7 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.66e-05/0.7649, allocations: 156.2 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.691e-05/0.7649, allocations: 39.45 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.441e-05/0.765, allocations: 37.7 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.7651, allocations: 342.8 kB / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.7653, allocations: 91.89 kB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.7655, allocations: 135.6 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.7658, allocations: 236.6 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.7658, allocations: 4.031 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004887/0.7663, allocations: 331 kB / 1.025 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.7663, allocations: 37.69 kB / 1.025 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.7664, allocations: 0 / 1.025 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.7664, allocations: 0 / 1.025 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.7665, allocations: 31.92 kB / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.7665, allocations: 0 / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.7667, allocations: 31.92 kB / 1.025 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.7667, allocations: 4 kB / 1.025 GB, free: 9.648 MB / 0.7794 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.0001673/0.7669, allocations: 205.5 kB / 1.025 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.772e-05/0.7669, allocations: 23.72 kB / 1.025 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.279e-05/0.767, allocations: 29.83 kB / 1.025 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.767, allocations: 0 / 1.025 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.767, allocations: 0 / 1.025 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.767, allocations: 3.938 kB / 1.025 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.7672, allocations: 293.4 kB / 1.026 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.7672, allocations: 0 / 1.026 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.7674, allocations: 23.92 kB / 1.026 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.7674, allocations: 7.984 kB / 1.026 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.7674, allocations: 0 / 1.026 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.7674, allocations: 4 kB / 1.026 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.7674, allocations: 0 / 1.026 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006964/0.7681, allocations: 470.2 kB / 1.026 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.561e-05/0.7682, allocations: 100.9 kB / 1.026 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/0.7682, allocations: 4 kB / 1.026 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.7683, allocations: 15.98 kB / 1.026 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.025e-05/0.7684, allocations: 23.95 kB / 1.026 GB, free: 8.363 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.312e-05/0.7685, allocations: 8 kB / 1.026 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001683/0.7686, allocations: 201.9 kB / 1.027 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7686, allocations: 4 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002822/0.7689, allocations: 64.22 kB / 1.027 GB, free: 8.094 MB / 0.7794 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.0001883/0.7691, allocations: 135.2 kB / 1.027 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004604/0.7696, allocations: 291.1 kB / 1.027 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.7696, allocations: 0 / 1.027 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.7698, allocations: 191.5 kB / 1.027 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.7702, allocations: 33.91 kB / 1.027 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009692/0.7711, allocations: 0.5301 MB / 1.028 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.7714, allocations: 0.7478 MB / 1.028 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.943e-05/0.7715, allocations: 21.48 kB / 1.028 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.766e-05/0.7716, allocations: 19.44 kB / 1.029 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.7716, allocations: 4 kB / 1.029 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of Templates: time 0.005704/0.7773, allocations: 2.534 MB / 1.031 GB, free: 3.535 MB / 0.7794 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/jenkins/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