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.001878/0.001886, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002811/0.002811, allocations: 193.2 kB / 16.26 MB, free: 6.621 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.609/1.609, allocations: 222.9 MB / 239.9 MB, free: 4.449 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 3.047/3.047, allocations: 437 MB / 0.7101 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 67.89 kB / 0.8687 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8378/0.8399, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003504/0.8434, allocations: 2.008 MB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.8447, allocations: 0.6935 MB / 1.019 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.8448, allocations: 4 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.8451, allocations: 79.77 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.8453, allocations: 91.61 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006368/0.8459, allocations: 163.2 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003727/0.8463, allocations: 271.4 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.8465, allocations: 63.86 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.8467, allocations: 119.6 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.8469, allocations: 143.5 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.847, allocations: 20 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.8472, allocations: 99.91 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.613e-05/0.8473, allocations: 59.78 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.8474, allocations: 107.3 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003863/0.8478, allocations: 307 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.8478, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8478, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.221e-06/0.8478, allocations: 4 kB / 1.021 GB, free: 14.53 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.000916/0.8487, allocations: 0.5702 MB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.8488, allocations: 12.03 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.702e-05/0.8489, allocations: 28.66 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004568/0.8493, allocations: 306.8 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.8494, allocations: 12.38 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.352e-05/0.8494, allocations: 12.38 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004173/0.8498, allocations: 231.2 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.8498, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.8499, allocations: 8 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.8499, allocations: 3.984 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000259/0.8501, allocations: 124.4 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009053/0.8511, allocations: 0.6886 MB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003766/0.8514, allocations: 174.4 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.8516, allocations: 96.95 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.8517, allocations: 0 / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003647/0.852, allocations: 172.9 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.852, allocations: 4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0007386/0.8528, allocations: 371 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.75e-05/0.8529, allocations: 136.5 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.8532, allocations: 278.7 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.8533, allocations: 29.7 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.8534, allocations: 160.2 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.394e-05/0.8535, allocations: 35.45 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.825e-05/0.8535, allocations: 45.7 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.8537, allocations: 338.9 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.8539, allocations: 91.83 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.8541, allocations: 137 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003576/0.8545, allocations: 240.8 kB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.8545, allocations: 0 / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005457/0.8551, allocations: 328.1 kB / 1.025 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.777e-05/0.8551, allocations: 45.78 kB / 1.025 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.8551, allocations: 0 / 1.025 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.8552, allocations: 4 kB / 1.025 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.8553, allocations: 19.98 kB / 1.025 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.8553, allocations: 4 kB / 1.025 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.8554, allocations: 23.83 kB / 1.025 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.8555, allocations: 8 kB / 1.025 GB, free: 9.523 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.0002181/0.8557, allocations: 205.5 kB / 1.026 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.468e-05/0.8557, allocations: 31.66 kB / 1.026 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.915e-05/0.8558, allocations: 29.83 kB / 1.026 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.8558, allocations: 0 / 1.026 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.8558, allocations: 0 / 1.026 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.8558, allocations: 4 kB / 1.026 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.8561, allocations: 289.4 kB / 1.026 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.8561, allocations: 0 / 1.026 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.8563, allocations: 15.98 kB / 1.026 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.8563, allocations: 0 / 1.026 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.8563, allocations: 12 kB / 1.026 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.8563, allocations: 0 / 1.026 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.8563, allocations: 0 / 1.026 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007917/0.8571, allocations: 471.9 kB / 1.026 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.825e-05/0.8572, allocations: 92.86 kB / 1.027 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.47e-05/0.8573, allocations: 8 kB / 1.027 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.8574, allocations: 20.05 kB / 1.027 GB, free: 8.266 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.588e-05/0.8575, allocations: 27.97 kB / 1.027 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.8575, allocations: 7.984 kB / 1.027 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002239/0.8577, allocations: 202 kB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8577, allocations: 0 / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000295/0.858, allocations: 60.03 kB / 1.027 GB, free: 7.977 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.0002385/0.8583, allocations: 143.6 kB / 1.027 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005331/0.8588, allocations: 299.2 kB / 1.027 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.8588, allocations: 0 / 1.027 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002585/0.8591, allocations: 187.3 kB / 1.027 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.8594, allocations: 35.41 kB / 1.028 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.8605, allocations: 0.5247 MB / 1.028 GB, free: 6.746 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.861, allocations: 0.7553 MB / 1.029 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001054/0.8611, allocations: 21.53 kB / 1.029 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.973e-05/0.8611, allocations: 23.36 kB / 1.029 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of SimCode: time 3.1e-07/0.8611, allocations: 0 / 1.029 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of Templates: time 0.006881/0.868, allocations: 2.66 MB / 1.031 GB, free: 3.281 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=400 -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