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.008504/0.008505, allocations: 100.3 kB / 15.73 MB, free: 6.012 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.002133/0.002133, allocations: 189.9 kB / 16.67 MB, free: 5.934 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.661/2.661, allocations: 437 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 67.88 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.23/1.232, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002998/1.235, allocations: 1.949 MB / 1.168 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001242/1.236, allocations: 0.713 MB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/1.236, allocations: 0 / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0002514/1.236, allocations: 87.64 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001285/1.237, allocations: 91.56 kB / 1.169 GB, free: 1 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005822/1.237, allocations: 180.9 kB / 1.17 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003197/1.238, allocations: 275.4 kB / 1.17 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/1.238, allocations: 61.91 kB / 1.17 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/1.238, allocations: 119.6 kB / 1.17 GB, free: 388 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/1.238, allocations: 151.5 kB / 1.17 GB, free: 236 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/1.238, allocations: 20 kB / 1.17 GB, free: 216 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/1.238, allocations: 91.92 kB / 1.17 GB, free: 124 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.808e-05/1.238, allocations: 59.83 kB / 1.17 GB, free: 64 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001134/1.238, allocations: 111.3 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0003741/1.239, allocations: 307.3 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/1.239, allocations: 0 / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.804e-06/1.239, allocations: 0 / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.223e-06/1.239, allocations: 0 / 1.171 GB, free: 15.66 MB / 0.9044 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.0008377/1.24, allocations: 0.5972 MB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/1.24, allocations: 8.922 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.656e-05/1.24, allocations: 36.69 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004857/1.24, allocations: 307 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/1.24, allocations: 8.375 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.432e-05/1.24, allocations: 20.38 kB / 1.172 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003736/1.241, allocations: 223.3 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/1.241, allocations: 0 / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/1.241, allocations: 11.94 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/1.241, allocations: 4 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/1.241, allocations: 136.4 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007969/1.242, allocations: 0.677 MB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003403/1.242, allocations: 166.5 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/1.242, allocations: 101 kB / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/1.242, allocations: 0 / 1.173 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002517/1.243, allocations: 169.1 kB / 1.173 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=15): time 1.004e-05/1.243, allocations: 4 kB / 1.173 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15): time 0.0006606/1.243, allocations: 378.9 kB / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.49e-05/1.243, allocations: 136.5 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/1.244, allocations: 286.7 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/1.244, allocations: 29.7 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/1.244, allocations: 156.3 kB / 1.174 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.908e-05/1.244, allocations: 43.67 kB / 1.174 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-05/1.244, allocations: 41.7 kB / 1.174 GB, free: 11.9 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001225/1.244, allocations: 338.8 kB / 1.174 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/1.244, allocations: 95.89 kB / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/1.244, allocations: 126.8 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003176/1.245, allocations: 244.4 kB / 1.175 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.245, allocations: 0 / 1.175 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004784/1.245, allocations: 337.3 kB / 1.175 GB, free: 10.72 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.458e-05/1.245, allocations: 37.78 kB / 1.175 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/1.245, allocations: 4 kB / 1.175 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/1.245, allocations: 4 kB / 1.175 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/1.246, allocations: 27.92 kB / 1.175 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/1.246, allocations: 4 kB / 1.175 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/1.246, allocations: 19.88 kB / 1.175 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/1.246, allocations: 12 kB / 1.175 GB, free: 10.61 MB / 0.9044 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.0001757/1.246, allocations: 201.5 kB / 1.175 GB, free: 10.4 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.828e-05/1.246, allocations: 27.86 kB / 1.176 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.307e-05/1.246, allocations: 25.83 kB / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/1.246, allocations: 96 / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/1.246, allocations: 7.938 kB / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/1.246, allocations: 0 / 1.176 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/1.246, allocations: 289.4 kB / 1.176 GB, free: 10 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/1.246, allocations: 0 / 1.176 GB, free: 10 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/1.246, allocations: 16 kB / 1.176 GB, free: 9.988 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/1.246, allocations: 0 / 1.176 GB, free: 9.988 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/1.246, allocations: 11.97 kB / 1.176 GB, free: 9.977 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/1.246, allocations: 7.938 kB / 1.176 GB, free: 9.969 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/1.246, allocations: 0 / 1.176 GB, free: 9.969 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006945/1.247, allocations: 468 kB / 1.176 GB, free: 9.488 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.062e-05/1.247, allocations: 104.9 kB / 1.176 GB, free: 9.367 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.236e-05/1.247, allocations: 8 kB / 1.176 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/1.247, allocations: 16.05 kB / 1.176 GB, free: 9.344 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.732e-05/1.247, allocations: 27.95 kB / 1.176 GB, free: 9.316 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/1.247, allocations: 7.984 kB / 1.176 GB, free: 9.309 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001959/1.248, allocations: 202 kB / 1.177 GB, free: 9.113 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/1.248, allocations: 0 / 1.177 GB, free: 9.113 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002943/1.248, allocations: 55.94 kB / 1.177 GB, free: 9.059 MB / 0.9044 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.0002096/1.248, allocations: 132.6 kB / 1.177 GB, free: 8.922 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004785/1.249, allocations: 299.2 kB / 1.177 GB, free: 8.617 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/1.249, allocations: 0 / 1.177 GB, free: 8.617 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002297/1.249, allocations: 179.3 kB / 1.177 GB, free: 8.43 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/1.249, allocations: 40.53 kB / 1.177 GB, free: 8.391 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009599/1.25, allocations: 488.7 kB / 1.178 GB, free: 7.879 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/1.251, allocations: 0.7514 MB / 1.179 GB, free: 7.102 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.114e-05/1.251, allocations: 17.55 kB / 1.179 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.523e-05/1.251, allocations: 15.44 kB / 1.179 GB, free: 7.07 MB / 0.9044 GB Notification: Performance of SimCode: time 4.51e-07/1.251, allocations: 4.281 kB / 1.179 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of Templates: time 0.006685/1.257, allocations: 2.85 MB / 1.181 GB, free: 4.238 MB / 0.9044 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/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