Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_11_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_11_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00456/0.00456, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001215/0.001215, allocations: 196.1 kB / 16.68 MB, free: 5.973 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.574/2.574, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 75.88 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6778/0.6796, allocations: 159.1 MB / 1.22 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003152/0.6828, allocations: 1.967 MB / 1.222 GB, free: 60 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.6841, allocations: 0.6944 MB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.6842, allocations: 7.938 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002148/0.6844, allocations: 79.7 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.6846, allocations: 91.56 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005611/0.6851, allocations: 189.9 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.6855, allocations: 263.4 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.6856, allocations: 69.88 kB / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.6858, allocations: 115.6 kB / 1.224 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.686, allocations: 151.5 kB / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.029e-05/0.6861, allocations: 20 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001561/0.6862, allocations: 99.91 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.949e-05/0.6863, allocations: 55.78 kB / 1.224 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.6864, allocations: 107.3 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004037/0.6868, allocations: 322.3 kB / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.758e-06/0.6868, allocations: 0 / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.242e-06/0.6869, allocations: 0 / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.6869, allocations: 0 / 1.224 GB, free: 13.82 MB / 0.9512 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.0008631/0.6877, allocations: 0.5894 MB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.6878, allocations: 8.031 kB / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.676e-05/0.6878, allocations: 42.75 kB / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.8e-05/0.6879, allocations: 32.78 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.6884, allocations: 307 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.6884, allocations: 20.38 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.237e-05/0.6885, allocations: 16.31 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003937/0.6889, allocations: 235.5 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.6889, allocations: 0 / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.6889, allocations: 4 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.6889, allocations: 8 kB / 1.225 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002564/0.6892, allocations: 124.4 kB / 1.226 GB, free: 12.33 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000871/0.6901, allocations: 0.6847 MB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/0.6905, allocations: 162.5 kB / 1.226 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.6906, allocations: 105 kB / 1.227 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.6907, allocations: 0 / 1.227 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002958/0.691, allocations: 173 kB / 1.227 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.691, allocations: 0 / 1.227 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15): time 0.0007109/0.6917, allocations: 378 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.115e-05/0.6918, allocations: 136.5 kB / 1.227 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002938/0.6921, allocations: 282.7 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.6921, allocations: 29.7 kB / 1.227 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.6923, allocations: 156.3 kB / 1.228 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.693e-05/0.6923, allocations: 51.62 kB / 1.228 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.419e-05/0.6924, allocations: 45.66 kB / 1.228 GB, free: 10 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.6926, allocations: 334.8 kB / 1.228 GB, free: 9.664 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.6927, allocations: 87.95 kB / 1.228 GB, free: 9.578 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.693, allocations: 129.2 kB / 1.228 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003447/0.6933, allocations: 248.8 kB / 1.228 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.6933, allocations: 0 / 1.228 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005155/0.6938, allocations: 335 kB / 1.229 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.6939, allocations: 41.69 kB / 1.229 GB, free: 8.781 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.6939, allocations: 0 / 1.229 GB, free: 8.781 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.6939, allocations: 4 kB / 1.229 GB, free: 8.777 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.6941, allocations: 19.98 kB / 1.229 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.6941, allocations: 4 kB / 1.229 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.6942, allocations: 23.88 kB / 1.229 GB, free: 8.73 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.6942, allocations: 8 kB / 1.229 GB, free: 8.723 MB / 0.9512 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.0001891/0.6944, allocations: 206.3 kB / 1.229 GB, free: 8.508 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.711e-05/0.6945, allocations: 23.86 kB / 1.229 GB, free: 8.484 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.784e-05/0.6945, allocations: 33.83 kB / 1.229 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.6945, allocations: 4 kB / 1.229 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.6945, allocations: 0 / 1.229 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.6945, allocations: 0 / 1.229 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002771/0.6948, allocations: 289.5 kB / 1.229 GB, free: 8.113 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.6948, allocations: 3.938 kB / 1.229 GB, free: 8.109 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.816e-05/0.6949, allocations: 15.98 kB / 1.229 GB, free: 8.094 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.695, allocations: 4 kB / 1.229 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.695, allocations: 4 kB / 1.229 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.695, allocations: 3.938 kB / 1.229 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.695, allocations: 0 / 1.229 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007379/0.6957, allocations: 478.3 kB / 1.23 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.247e-05/0.6958, allocations: 96.95 kB / 1.23 GB, free: 7.477 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.093e-05/0.6959, allocations: 12.06 kB / 1.23 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.696, allocations: 11.98 kB / 1.23 GB, free: 7.453 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.878e-05/0.6961, allocations: 23.97 kB / 1.23 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.6961, allocations: 11.98 kB / 1.23 GB, free: 7.418 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001931/0.6963, allocations: 198 kB / 1.23 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6963, allocations: 0 / 1.23 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002744/0.6966, allocations: 59.88 kB / 1.23 GB, free: 7.168 MB / 0.9512 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.001131/0.6977, allocations: 1.043 MB / 1.231 GB, free: 6.094 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005027/0.6982, allocations: 287.4 kB / 1.232 GB, free: 5.801 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.6982, allocations: 4 kB / 1.232 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002494/0.6985, allocations: 187.3 kB / 1.232 GB, free: 5.602 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.6988, allocations: 34.95 kB / 1.232 GB, free: 5.566 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.7024, allocations: 2.778 MB / 1.235 GB, free: 2.68 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.7027, allocations: 0.7514 MB / 1.235 GB, free: 1.902 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.567e-05/0.7028, allocations: 17.92 kB / 1.235 GB, free: 1.887 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.703, allocations: 71.41 kB / 1.235 GB, free: 1.816 MB / 0.9512 GB Notification: Performance of SimCode: time 6.31e-07/0.703, allocations: 0 / 1.235 GB, free: 1.816 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.7311, allocations: 5.419 MB / 1.241 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.628, allocations: 0.5938 kB / 1.241 GB, free: 12.5 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_11_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches