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.001096/0.001096, allocations: 114.9 kB / 16.37 MB, free: 6.016 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.001047/0.001047, allocations: 193.2 kB / 17.31 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.416/1.416, allocations: 222.9 MB / 241 MB, free: 15.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.444/2.444, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.55 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3632, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004186/0.3675, allocations: 1.97 MB / 1.029 GB, free: 92 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001531/0.3691, allocations: 0.7089 MB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.3692, allocations: 7.938 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003013/0.3695, allocations: 91.58 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.3697, allocations: 87.62 kB / 1.03 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007084/0.3704, allocations: 187.4 kB / 1.03 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003411/0.3708, allocations: 263.5 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.371, allocations: 65.83 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.3712, allocations: 119.6 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.3714, allocations: 147.5 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.611e-05/0.3715, allocations: 20 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001796/0.3717, allocations: 103.8 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.804e-05/0.3718, allocations: 55.78 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.3719, allocations: 107.3 kB / 1.031 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004126/0.3723, allocations: 311 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3723, allocations: 4 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.014e-06/0.3724, allocations: 0 / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.3724, allocations: 0 / 1.031 GB, free: 13.84 MB / 0.8106 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.00103/0.3734, allocations: 0.5714 MB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.3735, allocations: 12.03 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.622e-05/0.3735, allocations: 36.55 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005407/0.3741, allocations: 302.9 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.3741, allocations: 12.38 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.65e-05/0.3742, allocations: 12.38 kB / 1.032 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.3746, allocations: 240.2 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3746, allocations: 0 / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.3746, allocations: 7.938 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.3747, allocations: 4 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002461/0.3749, allocations: 128.4 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009658/0.3759, allocations: 0.6846 MB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.3762, allocations: 166.5 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.3764, allocations: 109 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.3764, allocations: 0 / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.3767, allocations: 169 kB / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.3767, allocations: 0 / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.0006522/0.3774, allocations: 377.6 kB / 1.034 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/0.3775, allocations: 132.5 kB / 1.034 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.3778, allocations: 282.6 kB / 1.034 GB, free: 10.38 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.3778, allocations: 29.7 kB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3779, allocations: 156.2 kB / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.3779, allocations: 39.45 kB / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.879e-05/0.378, allocations: 45.61 kB / 1.034 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.3782, allocations: 342.8 kB / 1.035 GB, free: 9.758 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.3783, allocations: 87.89 kB / 1.035 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.3785, allocations: 129.1 kB / 1.035 GB, free: 9.527 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.3788, allocations: 244.5 kB / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3788, allocations: 0 / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000484/0.3793, allocations: 334.9 kB / 1.035 GB, free: 8.926 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/0.3794, allocations: 37.69 kB / 1.035 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.3794, allocations: 4 kB / 1.035 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.3794, allocations: 0 / 1.035 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.3796, allocations: 28.02 kB / 1.035 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.3796, allocations: 8 kB / 1.035 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.3797, allocations: 27.83 kB / 1.035 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.3797, allocations: 4 kB / 1.035 GB, free: 8.812 MB / 0.8106 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.0001701/0.3799, allocations: 196.8 kB / 1.036 GB, free: 8.605 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.571e-05/0.3799, allocations: 23.72 kB / 1.036 GB, free: 8.582 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.083e-05/0.38, allocations: 29.83 kB / 1.036 GB, free: 8.555 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.38, allocations: 8 kB / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.38, allocations: 0 / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.38, allocations: 0 / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.3803, allocations: 293.3 kB / 1.036 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3803, allocations: 0 / 1.036 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.3804, allocations: 15.98 kB / 1.036 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3804, allocations: 96 / 1.036 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.3804, allocations: 11.94 kB / 1.036 GB, free: 8.184 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3804, allocations: 0 / 1.036 GB, free: 8.184 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3804, allocations: 0 / 1.036 GB, free: 8.184 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006755/0.3811, allocations: 474.2 kB / 1.036 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.06e-05/0.3812, allocations: 92.86 kB / 1.037 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.3812, allocations: 12 kB / 1.037 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.3813, allocations: 15.98 kB / 1.037 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.3814, allocations: 19.97 kB / 1.037 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.198e-05/0.3815, allocations: 7.984 kB / 1.037 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000174/0.3816, allocations: 206 kB / 1.037 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3816, allocations: 0 / 1.037 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002704/0.3819, allocations: 63.97 kB / 1.037 GB, free: 7.27 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.000203/0.3821, allocations: 135.1 kB / 1.037 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004414/0.3826, allocations: 291.4 kB / 1.037 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3826, allocations: 4 kB / 1.037 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002171/0.3828, allocations: 187.2 kB / 1.037 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.3831, allocations: 38.94 kB / 1.037 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009335/0.3841, allocations: 481.3 kB / 1.038 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.3844, allocations: 0.7475 MB / 1.039 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.14e-05/0.3844, allocations: 17.55 kB / 1.039 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.577e-05/0.3845, allocations: 23.42 kB / 1.039 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.3845, allocations: 0 / 1.039 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of Templates: time 0.006157/0.3907, allocations: 2.818 MB / 1.041 GB, free: 2.492 MB / 0.8106 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 -s gbode -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