Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001459/0.001459, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00233/0.002329, allocations: 181 kB / 16.92 MB, free: 6.918 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.383/1.383, allocations: 223.3 MB / 241 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.715/2.715, allocations: 443.2 MB / 0.7181 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003567, allocations: 13.28 kB / 0.8801 GB, free: 42.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3308, allocations: 155.2 MB / 1.032 GB, free: 4.832 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002593/0.3335, allocations: 1.658 MB / 1.033 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001452/0.335, allocations: 0.7245 MB / 1.034 GB, free: 2.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.3352, allocations: 0 / 1.034 GB, free: 2.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002486/0.3354, allocations: 83.69 kB / 1.034 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.3356, allocations: 79.7 kB / 1.034 GB, free: 2.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006598/0.3363, allocations: 162.9 kB / 1.034 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003644/0.3367, allocations: 239.4 kB / 1.034 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.3368, allocations: 62.12 kB / 1.035 GB, free: 1.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/0.337, allocations: 91.66 kB / 1.035 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.3373, allocations: 131.5 kB / 1.035 GB, free: 1.602 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.332e-05/0.3373, allocations: 4 kB / 1.035 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.3375, allocations: 79.94 kB / 1.035 GB, free: 1.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.647e-05/0.3376, allocations: 43.83 kB / 1.035 GB, free: 1.477 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.3377, allocations: 113 kB / 1.035 GB, free: 1.359 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003085/0.338, allocations: 215.6 kB / 1.035 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.338, allocations: 0 / 1.035 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3381, allocations: 0 / 1.035 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.869e-06/0.3381, allocations: 0 / 1.035 GB, free: 1.148 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.000899/0.339, allocations: 0.5508 MB / 1.036 GB, free: 0.543 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.339, allocations: 11.97 kB / 1.036 GB, free: 0.5312 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.3391, allocations: 32.64 kB / 1.036 GB, free: 0.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005116/0.3397, allocations: 302.9 kB / 1.036 GB, free: 168 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.532e-05/0.3397, allocations: 16.38 kB / 1.036 GB, free: 152 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.226e-05/0.3398, allocations: 12.38 kB / 1.036 GB, free: 140 kB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.3402, allocations: 227.2 kB / 1.036 GB, free: 15.89 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.3402, allocations: 4 kB / 1.036 GB, free: 15.89 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/0.3403, allocations: 4 kB / 1.036 GB, free: 15.88 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.3403, allocations: 7.938 kB / 1.036 GB, free: 15.88 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.3406, allocations: 132.4 kB / 1.036 GB, free: 15.75 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.3417, allocations: 0.6925 MB / 1.037 GB, free: 15 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004027/0.3421, allocations: 174.5 kB / 1.037 GB, free: 14.82 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/0.3423, allocations: 109.1 kB / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.3423, allocations: 0 / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003411/0.3426, allocations: 173.1 kB / 1.038 GB, free: 14.52 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.3427, allocations: 0 / 1.038 GB, free: 14.52 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0007464/0.3434, allocations: 386.9 kB / 1.038 GB, free: 14.13 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.464e-05/0.3435, allocations: 144.4 kB / 1.038 GB, free: 13.96 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.3438, allocations: 278.6 kB / 1.038 GB, free: 13.67 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.3439, allocations: 33.7 kB / 1.038 GB, free: 13.63 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.344, allocations: 160.2 kB / 1.039 GB, free: 13.47 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.672e-05/0.3441, allocations: 43.44 kB / 1.039 GB, free: 13.43 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/0.3441, allocations: 25.8 kB / 1.039 GB, free: 13.4 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.3442, allocations: 342.8 kB / 1.039 GB, free: 13.05 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.3444, allocations: 83.91 kB / 1.039 GB, free: 12.97 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.3446, allocations: 149 kB / 1.039 GB, free: 12.81 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000359/0.345, allocations: 248.5 kB / 1.039 GB, free: 12.54 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.345, allocations: 0 / 1.039 GB, free: 12.54 MB / 0.795 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000548/0.3456, allocations: 342.9 kB / 1.04 GB, free: 12.2 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.442e-05/0.3456, allocations: 35.2 kB / 1.04 GB, free: 12.16 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.3457, allocations: 7.984 kB / 1.04 GB, free: 12.15 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.3457, allocations: 4 kB / 1.04 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.3458, allocations: 31.92 kB / 1.04 GB, free: 12.11 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.3458, allocations: 0 / 1.04 GB, free: 12.11 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.346, allocations: 31.73 kB / 1.04 GB, free: 12.08 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.346, allocations: 4 kB / 1.04 GB, free: 12.08 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.0001927/0.3462, allocations: 204.9 kB / 1.04 GB, free: 11.86 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.224e-05/0.3463, allocations: 23.72 kB / 1.04 GB, free: 11.84 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.046e-05/0.3463, allocations: 33.81 kB / 1.04 GB, free: 11.81 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3463, allocations: 0 / 1.04 GB, free: 11.81 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.3463, allocations: 0 / 1.04 GB, free: 11.81 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3464, allocations: 0 / 1.04 GB, free: 11.81 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002747/0.3466, allocations: 289.4 kB / 1.04 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.3466, allocations: 0 / 1.04 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.3468, allocations: 23.98 kB / 1.04 GB, free: 11.45 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3468, allocations: 0 / 1.04 GB, free: 11.45 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.3468, allocations: 8 kB / 1.04 GB, free: 11.45 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3468, allocations: 0 / 1.04 GB, free: 11.45 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3468, allocations: 3.984 kB / 1.04 GB, free: 11.44 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007617/0.3476, allocations: 483.4 kB / 1.041 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.926e-05/0.3477, allocations: 104.8 kB / 1.041 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.499e-05/0.3477, allocations: 7.984 kB / 1.041 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.3478, allocations: 16 kB / 1.041 GB, free: 10.8 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.521e-05/0.3479, allocations: 23.95 kB / 1.041 GB, free: 10.78 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.348, allocations: 8.062 kB / 1.041 GB, free: 10.77 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002028/0.3482, allocations: 213.9 kB / 1.041 GB, free: 10.56 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3482, allocations: 0 / 1.041 GB, free: 10.56 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002954/0.3485, allocations: 48 kB / 1.041 GB, free: 10.52 MB / 0.795 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.0002251/0.3487, allocations: 135.2 kB / 1.041 GB, free: 10.38 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005205/0.3493, allocations: 299.2 kB / 1.042 GB, free: 10.07 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3493, allocations: 0 / 1.042 GB, free: 10.07 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002482/0.3495, allocations: 195.4 kB / 1.042 GB, free: 9.867 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.3499, allocations: 27.05 kB / 1.042 GB, free: 9.844 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.351, allocations: 0.5747 MB / 1.042 GB, free: 9.238 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.3514, allocations: 0.7517 MB / 1.043 GB, free: 8.461 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.093e-05/0.3514, allocations: 23.42 kB / 1.043 GB, free: 8.438 MB / 0.795 GB Notification: Performance of SimCode: time 4.21e-07/0.3514, allocations: 0 / 1.043 GB, free: 8.438 MB / 0.795 GB Notification: Performance of Templates: time 0.005847/0.3573, allocations: 2.95 MB / 1.046 GB, free: 5.492 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches