Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_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.007696/0.007696, allocations: 100.7 kB / 15.73 MB, free: 6.059 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.001836/0.001836, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.377/1.377, 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 9.1.3-maint.9.1.x/package.mo): time 2.161/2.161, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 0.9504 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6961/0.6974, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002752/0.7001, allocations: 1.955 MB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.7012, allocations: 0.7094 MB / 1.09 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.802e-05/0.7013, allocations: 3 kB / 1.09 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002216/0.7016, allocations: 85.52 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.7017, allocations: 86.06 kB / 1.09 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000557/0.7023, allocations: 197.8 kB / 1.09 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002896/0.7026, allocations: 254 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.7027, allocations: 79.19 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.7029, allocations: 118.9 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.7031, allocations: 150.5 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.825e-05/0.7031, allocations: 21.09 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.7033, allocations: 104.1 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.928e-05/0.7034, allocations: 56.06 kB / 1.091 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.628e-05/0.7035, allocations: 109.3 kB / 1.091 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003966/0.7039, allocations: 309.8 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.7039, allocations: 3.938 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.933e-06/0.7039, allocations: 0 / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.333e-06/0.7039, allocations: 0.875 kB / 1.092 GB, free: 2.738 MB / 0.8575 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.0008741/0.7048, allocations: 0.5754 MB / 1.092 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.7049, allocations: 9.969 kB / 1.092 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.85e-05/0.7049, allocations: 47.42 kB / 1.092 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.985e-05/0.705, allocations: 31.17 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005372/0.7055, allocations: 306.2 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.7056, allocations: 11.5 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.771e-05/0.7056, allocations: 18.03 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004522/0.7061, allocations: 233 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.7061, allocations: 0.8125 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.629e-05/0.7061, allocations: 6.703 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.7062, allocations: 2.656 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002928/0.7064, allocations: 129.1 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009034/0.7074, allocations: 0.682 MB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/0.7078, allocations: 164.2 kB / 1.094 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.708, allocations: 99.44 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.708, allocations: 4.938 kB / 1.094 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002909/0.7083, allocations: 173.5 kB / 1.094 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.733e-06/0.7083, allocations: 0 / 1.094 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0007133/0.709, allocations: 371.2 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.7091, allocations: 136.8 kB / 1.094 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.7094, allocations: 283.2 kB / 1.095 GB, free: 500 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.7094, allocations: 33.55 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.142e-05/0.7095, allocations: 150.3 kB / 1.095 GB, free: 332 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.7096, allocations: 45.64 kB / 1.095 GB, free: 296 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.769e-05/0.7096, allocations: 41.12 kB / 1.095 GB, free: 268 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.175e-05/0.7097, allocations: 338.8 kB / 1.095 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/0.7099, allocations: 86.12 kB / 1.095 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.7102, allocations: 140 kB / 1.096 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.7106, allocations: 234.1 kB / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.7106, allocations: 11.97 kB / 1.096 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006159/0.7112, allocations: 329.7 kB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.422e-05/0.7113, allocations: 40.69 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.7113, allocations: 0.9688 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.7114, allocations: 5.938 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.7115, allocations: 21.95 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.7115, allocations: 5.844 kB / 1.096 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.7117, allocations: 34.59 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.7117, allocations: 6.516 kB / 1.096 GB, free: 15.48 MB / 0.8731 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.0001778/0.7119, allocations: 194.2 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.762e-05/0.7119, allocations: 24.97 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.146e-05/0.712, allocations: 34.89 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.712, allocations: 1.547 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.712, allocations: 0.8438 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.712, allocations: 4.797 kB / 1.096 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.7123, allocations: 293.1 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.7123, allocations: 0.7969 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.7124, allocations: 18.92 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.7124, allocations: 0.75 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.7125, allocations: 4.562 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.7125, allocations: 1.344 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7125, allocations: 0 / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007495/0.7132, allocations: 473.3 kB / 1.097 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.7133, allocations: 96.39 kB / 1.097 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.401e-05/0.7134, allocations: 9.281 kB / 1.097 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.7135, allocations: 10.95 kB / 1.097 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.469e-05/0.7136, allocations: 27.94 kB / 1.097 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.7136, allocations: 10.81 kB / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001977/0.7138, allocations: 198.8 kB / 1.098 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7138, allocations: 4.062 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003194/0.7141, allocations: 63.8 kB / 1.098 GB, free: 14.58 MB / 0.8731 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.001058/0.7152, allocations: 1.029 MB / 1.099 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005174/0.7157, allocations: 295.7 kB / 1.099 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7157, allocations: 1.312 kB / 1.099 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002484/0.716, allocations: 186.1 kB / 1.099 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.7163, allocations: 39.19 kB / 1.099 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003768/0.7201, allocations: 2.774 MB / 1.102 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.7205, allocations: 0.753 MB / 1.103 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.004e-05/0.7206, allocations: 15.92 kB / 1.103 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.7207, allocations: 72.2 kB / 1.103 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of SimCode: time 4.91e-07/0.7207, allocations: 5.5 kB / 1.103 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.7454, allocations: 5.386 MB / 1.108 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.633/8.378, allocations: 14.94 kB / 1.108 GB, free: 10.42 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches