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.001355/0.001355, allocations: 102.2 kB / 16.27 MB, free: 6 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.001333/0.001334, allocations: 191 kB / 17.2 MB, free: 5.609 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.421/1.421, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.616/2.616, allocations: 437.1 MB / 0.7111 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 63.28 kB / 0.8699 GB, free: 2.184 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.303, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003614/0.3066, allocations: 1.955 MB / 1.02 GB, free: 8.648 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.308, allocations: 0.7168 MB / 1.021 GB, free: 7.926 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.3081, allocations: 3.938 kB / 1.021 GB, free: 7.922 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002322/0.3083, allocations: 83.62 kB / 1.021 GB, free: 7.84 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.3085, allocations: 91.58 kB / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005629/0.3091, allocations: 186.9 kB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.3094, allocations: 263.4 kB / 1.021 GB, free: 7.312 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.3096, allocations: 78.09 kB / 1.021 GB, free: 7.238 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.3097, allocations: 119.6 kB / 1.021 GB, free: 7.121 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002055/0.3099, allocations: 151.5 kB / 1.022 GB, free: 6.973 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.31, allocations: 20 kB / 1.022 GB, free: 6.953 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.3102, allocations: 87.94 kB / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.838e-05/0.3103, allocations: 59.77 kB / 1.022 GB, free: 6.809 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.3104, allocations: 103.4 kB / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003694/0.3108, allocations: 295.1 kB / 1.022 GB, free: 6.418 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3108, allocations: 8 kB / 1.022 GB, free: 6.41 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3108, allocations: 0 / 1.022 GB, free: 6.41 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.3108, allocations: 0 / 1.022 GB, free: 6.41 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.0009194/0.3117, allocations: 0.578 MB / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3118, allocations: 12.92 kB / 1.023 GB, free: 5.766 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.633e-05/0.3118, allocations: 24.66 kB / 1.023 GB, free: 5.742 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004737/0.3123, allocations: 306.8 kB / 1.023 GB, free: 5.402 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.3124, allocations: 12.38 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.3124, allocations: 16.38 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004212/0.3128, allocations: 223.8 kB / 1.023 GB, free: 5.133 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.3128, allocations: 0 / 1.023 GB, free: 5.133 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.3129, allocations: 8 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.3129, allocations: 4 kB / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.3132, allocations: 129.3 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/0.3141, allocations: 0.6847 MB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003957/0.3145, allocations: 166.7 kB / 1.024 GB, free: 4.082 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.3147, allocations: 104.8 kB / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.3147, allocations: 0 / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003629/0.3151, allocations: 171.2 kB / 1.024 GB, free: 3.793 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.3151, allocations: 0 / 1.024 GB, free: 3.793 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0007259/0.3158, allocations: 374.9 kB / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.708e-05/0.3159, allocations: 136.5 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.3163, allocations: 278.7 kB / 1.025 GB, free: 2.973 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.3163, allocations: 29.7 kB / 1.025 GB, free: 2.938 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.3164, allocations: 160.1 kB / 1.025 GB, free: 2.777 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.859e-05/0.3165, allocations: 47.53 kB / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.132e-05/0.3166, allocations: 45.64 kB / 1.025 GB, free: 2.68 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3167, allocations: 334.8 kB / 1.026 GB, free: 2.344 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.3169, allocations: 99.8 kB / 1.026 GB, free: 2.246 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.3171, allocations: 129.1 kB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.3175, allocations: 244.6 kB / 1.026 GB, free: 1.84 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3175, allocations: 0 / 1.026 GB, free: 1.84 MB / 0.795 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005353/0.3181, allocations: 328.8 kB / 1.027 GB, free: 1.508 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.004e-05/0.3181, allocations: 41.69 kB / 1.027 GB, free: 1.461 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3181, allocations: 0 / 1.027 GB, free: 1.461 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3182, allocations: 8.094 kB / 1.027 GB, free: 1.453 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.3183, allocations: 19.98 kB / 1.027 GB, free: 1.434 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.3183, allocations: 8 kB / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.3184, allocations: 19.83 kB / 1.027 GB, free: 1.406 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.3185, allocations: 15.94 kB / 1.027 GB, free: 1.391 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.000197/0.3187, allocations: 195.4 kB / 1.027 GB, free: 1.184 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.3187, allocations: 23.72 kB / 1.027 GB, free: 1.16 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.458e-05/0.3188, allocations: 29.83 kB / 1.027 GB, free: 1.133 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3188, allocations: 4 kB / 1.027 GB, free: 1.129 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.3188, allocations: 0 / 1.027 GB, free: 1.129 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3188, allocations: 0 / 1.027 GB, free: 1.129 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002932/0.3191, allocations: 293.4 kB / 1.027 GB, free: 0.793 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3191, allocations: 0 / 1.027 GB, free: 0.793 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.3192, allocations: 15.98 kB / 1.027 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3193, allocations: 3.984 kB / 1.027 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.3193, allocations: 4 kB / 1.027 GB, free: 0.7695 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3193, allocations: 0 / 1.027 GB, free: 0.7695 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3193, allocations: 4 kB / 1.027 GB, free: 0.7656 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007684/0.3201, allocations: 476.3 kB / 1.028 GB, free: 284 kB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.02e-05/0.3201, allocations: 92.86 kB / 1.028 GB, free: 172 kB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/0.3202, allocations: 8 kB / 1.028 GB, free: 164 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.3203, allocations: 11.98 kB / 1.028 GB, free: 152 kB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.83e-05/0.3204, allocations: 32.02 kB / 1.028 GB, free: 120 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.3204, allocations: 8 kB / 1.028 GB, free: 112 kB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002149/0.3207, allocations: 198 kB / 1.028 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3207, allocations: 0 / 1.028 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003026/0.321, allocations: 67.95 kB / 1.028 GB, free: 15.85 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.0002183/0.3212, allocations: 135.1 kB / 1.028 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005427/0.3217, allocations: 303.2 kB / 1.028 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3218, allocations: 0 / 1.028 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000268/0.322, allocations: 191.3 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.3223, allocations: 25.05 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.3235, allocations: 0.5071 MB / 1.029 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.3239, allocations: 0.7617 MB / 1.03 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.288e-05/0.3239, allocations: 15.44 kB / 1.03 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of SimCode: time 4.7e-07/0.3239, allocations: 4 kB / 1.03 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of Templates: time 0.005666/0.3296, allocations: 2.997 MB / 1.033 GB, free: 10.85 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=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/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