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.001451/0.001451, allocations: 110 kB / 16.27 MB, free: 6.355 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.001412/0.001412, allocations: 189.6 kB / 17.2 MB, free: 5.953 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.369/1.369, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.527/2.527, allocations: 437 MB / 0.711 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 72.06 kB / 0.8699 GB, free: 2.234 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3264, allocations: 151.6 MB / 1.018 GB, free: 10.69 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003488/0.33, allocations: 1.963 MB / 1.02 GB, free: 8.707 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3314, allocations: 0.709 MB / 1.021 GB, free: 7.992 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.3316, allocations: 4 kB / 1.021 GB, free: 7.988 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002633/0.3319, allocations: 79.64 kB / 1.021 GB, free: 7.91 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001797/0.3321, allocations: 95.61 kB / 1.021 GB, free: 7.816 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000672/0.3328, allocations: 187.7 kB / 1.021 GB, free: 7.637 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004248/0.3332, allocations: 271.4 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00019/0.3334, allocations: 70.11 kB / 1.021 GB, free: 7.305 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002007/0.3336, allocations: 111.7 kB / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.3339, allocations: 147.5 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.74e-05/0.3339, allocations: 20 kB / 1.022 GB, free: 7.031 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.3341, allocations: 99.86 kB / 1.022 GB, free: 6.934 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.139e-05/0.3342, allocations: 59.77 kB / 1.022 GB, free: 6.875 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.3343, allocations: 103.4 kB / 1.022 GB, free: 6.773 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000414/0.3347, allocations: 295.1 kB / 1.022 GB, free: 6.484 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3347, allocations: 0 / 1.022 GB, free: 6.484 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3348, allocations: 0 / 1.022 GB, free: 6.484 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.466e-05/0.3348, allocations: 0 / 1.022 GB, free: 6.484 MB / 0.795 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.001004/0.3358, allocations: 0.5836 MB / 1.023 GB, free: 5.848 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3358, allocations: 8.922 kB / 1.023 GB, free: 5.84 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.25e-05/0.3359, allocations: 28.66 kB / 1.023 GB, free: 5.812 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004732/0.3364, allocations: 302.8 kB / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.3364, allocations: 20.25 kB / 1.023 GB, free: 5.457 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.3365, allocations: 12.38 kB / 1.023 GB, free: 5.445 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.3369, allocations: 223.8 kB / 1.023 GB, free: 5.203 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.3369, allocations: 4 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.3369, allocations: 4 kB / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3369, allocations: 4 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.3372, allocations: 133.3 kB / 1.023 GB, free: 5.062 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008571/0.3381, allocations: 0.6885 MB / 1.024 GB, free: 4.316 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003449/0.3384, allocations: 166.6 kB / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.3386, allocations: 100.8 kB / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.3386, allocations: 0 / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003046/0.339, allocations: 180.1 kB / 1.024 GB, free: 3.852 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.339, allocations: 0 / 1.024 GB, free: 3.852 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0006552/0.3396, allocations: 367 kB / 1.025 GB, free: 3.48 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.603e-05/0.3397, allocations: 136.5 kB / 1.025 GB, free: 3.316 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.34, allocations: 274.7 kB / 1.025 GB, free: 3.043 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.34, allocations: 33.7 kB / 1.025 GB, free: 3.004 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.3401, allocations: 168.1 kB / 1.025 GB, free: 2.836 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/0.3402, allocations: 43.45 kB / 1.025 GB, free: 2.793 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.559e-05/0.3403, allocations: 37.7 kB / 1.025 GB, free: 2.75 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3404, allocations: 338.8 kB / 1.026 GB, free: 2.41 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.3405, allocations: 91.81 kB / 1.026 GB, free: 2.32 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.3407, allocations: 133.1 kB / 1.026 GB, free: 2.172 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003332/0.3411, allocations: 236.4 kB / 1.026 GB, free: 1.918 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3411, allocations: 4 kB / 1.026 GB, free: 1.914 MB / 0.795 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004811/0.3416, allocations: 339 kB / 1.027 GB, free: 1.57 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.3416, allocations: 33.7 kB / 1.027 GB, free: 1.531 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.3416, allocations: 0 / 1.027 GB, free: 1.531 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3416, allocations: 0 / 1.027 GB, free: 1.531 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.3418, allocations: 31.92 kB / 1.027 GB, free: 1.5 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.3418, allocations: 0 / 1.027 GB, free: 1.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.3419, allocations: 23.83 kB / 1.027 GB, free: 1.477 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/0.3419, allocations: 8 kB / 1.027 GB, free: 1.469 MB / 0.795 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.3421, allocations: 196.4 kB / 1.027 GB, free: 1.262 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.3422, allocations: 27.66 kB / 1.027 GB, free: 1.234 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.361e-05/0.3422, allocations: 33.77 kB / 1.027 GB, free: 1.203 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3422, allocations: 0 / 1.027 GB, free: 1.203 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.3422, allocations: 0 / 1.027 GB, free: 1.203 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3422, allocations: 4.078 kB / 1.027 GB, free: 1.199 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.3425, allocations: 297.3 kB / 1.027 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3425, allocations: 0 / 1.027 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.3426, allocations: 19.98 kB / 1.027 GB, free: 0.8398 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/0.3426, allocations: 8 kB / 1.027 GB, free: 0.832 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.3426, allocations: 0 / 1.027 GB, free: 0.832 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3427, allocations: 0 / 1.027 GB, free: 0.832 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3427, allocations: 7.984 kB / 1.027 GB, free: 0.8242 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006616/0.3433, allocations: 462.2 kB / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.582e-05/0.3434, allocations: 100.9 kB / 1.028 GB, free: 236 kB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.3434, allocations: 8.062 kB / 1.028 GB, free: 228 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.3436, allocations: 15.98 kB / 1.028 GB, free: 212 kB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.3436, allocations: 23.95 kB / 1.028 GB, free: 188 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.3437, allocations: 4 kB / 1.028 GB, free: 184 kB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001882/0.3439, allocations: 206 kB / 1.028 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3439, allocations: 0 / 1.028 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002863/0.3442, allocations: 63.97 kB / 1.028 GB, free: 15.91 MB / 0.8106 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.0002042/0.3444, allocations: 143.1 kB / 1.028 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004644/0.3448, allocations: 295.1 kB / 1.028 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3449, allocations: 0 / 1.028 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.3451, allocations: 187.3 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.3454, allocations: 36.73 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.3464, allocations: 0.5068 MB / 1.029 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.3467, allocations: 0.7475 MB / 1.03 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.518e-05/0.3468, allocations: 19.44 kB / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/0.3468, allocations: 3.938 kB / 1.03 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of Templates: time 0.00692/0.3537, allocations: 2.997 MB / 1.033 GB, free: 10.92 MB / 0.8106 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/jenkins1/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