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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_10_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.007618/0.007618, allocations: 98.97 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.001899/0.0019, allocations: 201.3 kB / 16.68 MB, free: 5.926 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.42/2.42, allocations: 437.1 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 67.89 kB / 1.018 GB, free: 9.91 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6994/0.7007, allocations: 151.6 MB / 1.166 GB, free: 3.742 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003237/0.704, allocations: 1.957 MB / 1.168 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001351/0.7053, allocations: 0.7169 MB / 1.169 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.7055, allocations: 4 kB / 1.169 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0002429/0.7058, allocations: 79.64 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001637/0.706, allocations: 95.56 kB / 1.169 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006387/0.7066, allocations: 190.4 kB / 1.169 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003621/0.707, allocations: 263.3 kB / 1.169 GB, free: 444 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.7072, allocations: 65.89 kB / 1.169 GB, free: 380 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.7074, allocations: 115.7 kB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.7076, allocations: 155.5 kB / 1.17 GB, free: 108 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.042e-05/0.7077, allocations: 20 kB / 1.17 GB, free: 88 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.7078, allocations: 99.97 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 8.178e-05/0.7079, allocations: 47.78 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.708, allocations: 115.3 kB / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.7084, allocations: 310.5 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.7085, allocations: 0 / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.428e-06/0.7085, allocations: 0 / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.7085, allocations: 3.938 kB / 1.17 GB, free: 15.52 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.0008455/0.7093, allocations: 0.5894 MB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.7094, allocations: 8.922 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.65e-05/0.7094, allocations: 42.75 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.782e-05/0.7095, allocations: 32.75 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.71, allocations: 315 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.7101, allocations: 8.375 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.7101, allocations: 20.36 kB / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003836/0.7105, allocations: 227.1 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.7105, allocations: 0 / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.7105, allocations: 11.98 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.7106, allocations: 4 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002528/0.7108, allocations: 120.4 kB / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008077/0.7116, allocations: 0.6886 MB / 1.172 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.712, allocations: 162.5 kB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.7122, allocations: 104.9 kB / 1.173 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.7122, allocations: 8.031 kB / 1.173 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002615/0.7125, allocations: 171.1 kB / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.7125, allocations: 0 / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15): time 0.0006431/0.7131, allocations: 371 kB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.7132, allocations: 136.5 kB / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.7135, allocations: 282.7 kB / 1.173 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.7135, allocations: 33.7 kB / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.7136, allocations: 156.3 kB / 1.174 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.977e-05/0.7136, allocations: 47.56 kB / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.199e-05/0.7137, allocations: 41.7 kB / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.7138, allocations: 342.8 kB / 1.174 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.714, allocations: 84.05 kB / 1.174 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001821/0.7142, allocations: 134.2 kB / 1.174 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.7145, allocations: 248.7 kB / 1.174 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.7145, allocations: 4.031 kB / 1.174 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004828/0.715, allocations: 331 kB / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.7151, allocations: 41.69 kB / 1.175 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.7151, allocations: 0 / 1.175 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.7151, allocations: 4 kB / 1.175 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.7152, allocations: 19.98 kB / 1.175 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.7152, allocations: 4 kB / 1.175 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.7154, allocations: 27.97 kB / 1.175 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.7154, allocations: 8 kB / 1.175 GB, free: 10.43 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.0001552/0.7155, allocations: 191.4 kB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.782e-05/0.7156, allocations: 27.86 kB / 1.175 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.017e-05/0.7156, allocations: 29.83 kB / 1.175 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.7157, allocations: 0 / 1.175 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.7157, allocations: 0 / 1.175 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.7157, allocations: 4 kB / 1.175 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.7159, allocations: 297.4 kB / 1.175 GB, free: 9.824 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.7159, allocations: 0 / 1.175 GB, free: 9.824 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.716, allocations: 19.98 kB / 1.175 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.716, allocations: 0 / 1.175 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.7161, allocations: 4 kB / 1.175 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.7161, allocations: 0 / 1.175 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.7161, allocations: 0 / 1.175 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006692/0.7167, allocations: 481.4 kB / 1.176 GB, free: 9.309 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.967e-05/0.7168, allocations: 100.9 kB / 1.176 GB, free: 9.191 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.7169, allocations: 8 kB / 1.176 GB, free: 9.184 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.717, allocations: 11.98 kB / 1.176 GB, free: 9.172 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.276e-05/0.717, allocations: 23.97 kB / 1.176 GB, free: 9.148 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.7171, allocations: 11.98 kB / 1.176 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001732/0.7173, allocations: 202 kB / 1.176 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7173, allocations: 0 / 1.176 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002789/0.7175, allocations: 59.94 kB / 1.176 GB, free: 8.883 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.0009714/0.7185, allocations: 1.024 MB / 1.177 GB, free: 7.824 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004537/0.719, allocations: 300.3 kB / 1.178 GB, free: 7.52 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.719, allocations: 3.938 kB / 1.178 GB, free: 7.516 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.7192, allocations: 187.5 kB / 1.178 GB, free: 7.32 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.7195, allocations: 34.61 kB / 1.178 GB, free: 7.289 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.7228, allocations: 2.782 MB / 1.181 GB, free: 4.398 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.7231, allocations: 0.7475 MB / 1.181 GB, free: 3.625 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.258e-05/0.7232, allocations: 21.55 kB / 1.181 GB, free: 3.602 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.7233, allocations: 71.41 kB / 1.181 GB, free: 3.531 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.7233, allocations: 0 / 1.181 GB, free: 3.531 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.7456, allocations: 5.41 MB / 1.187 GB, free: 14.23 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/8.347, allocations: 12.59 kB / 1.187 GB, free: 14.21 MB / 0.92 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv","/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