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.001087/0.001087, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.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.525/2.525, allocations: 437.1 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 67.89 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5329/0.5343, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003207/0.5375, allocations: 1.955 MB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001236/0.5388, allocations: 0.709 MB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.539, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002325/0.5392, allocations: 91.62 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.5394, allocations: 91.56 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000587/0.54, allocations: 179.7 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003007/0.5403, allocations: 271.4 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.5404, allocations: 64.14 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.5406, allocations: 119.6 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.5408, allocations: 147.5 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.794e-05/0.5408, allocations: 20 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.541, allocations: 87.94 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.936e-05/0.541, allocations: 67.77 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.597e-05/0.5411, allocations: 103.4 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003092/0.5415, allocations: 311 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.5415, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.283e-06/0.5415, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.5415, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 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.0007709/0.5423, allocations: 0.5702 MB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.5423, allocations: 12.03 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.318e-05/0.5424, allocations: 46.73 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.455e-05/0.5424, allocations: 28.66 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004024/0.5428, allocations: 302.8 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.5429, allocations: 12.38 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.259e-05/0.5429, allocations: 12.38 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.5433, allocations: 231.1 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.5433, allocations: 0 / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.5433, allocations: 4 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.5433, allocations: 4 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.5436, allocations: 125.6 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007572/0.5443, allocations: 0.6924 MB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003493/0.5447, allocations: 174.5 kB / 1.024 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.5449, allocations: 92.81 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.5449, allocations: 4 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.5452, allocations: 171.2 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.5452, allocations: 0 / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0006431/0.5459, allocations: 378.8 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.5459, allocations: 140.5 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.5462, allocations: 270.7 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.5462, allocations: 33.7 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.5463, allocations: 164.2 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.563e-05/0.5464, allocations: 43.44 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.919e-05/0.5465, allocations: 41.7 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.5466, allocations: 342.8 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.5468, allocations: 79.97 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.5469, allocations: 133.7 kB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/0.5473, allocations: 236.6 kB / 1.026 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.5473, allocations: 0 / 1.026 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000479/0.5478, allocations: 348.2 kB / 1.026 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.553e-05/0.5478, allocations: 37.7 kB / 1.026 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.5478, allocations: 0 / 1.026 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.5478, allocations: 0 / 1.026 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.548, allocations: 23.98 kB / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.548, allocations: 0 / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.5481, allocations: 27.83 kB / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.5481, allocations: 4 kB / 1.026 GB, free: 9.227 MB / 0.7794 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.0001593/0.5483, allocations: 206 kB / 1.026 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.73e-05/0.5483, allocations: 23.72 kB / 1.026 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.422e-05/0.5484, allocations: 33.83 kB / 1.026 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.5484, allocations: 3.938 kB / 1.026 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.5484, allocations: 0 / 1.026 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.5484, allocations: 0 / 1.026 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002252/0.5487, allocations: 289.6 kB / 1.027 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.5487, allocations: 0 / 1.027 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.832e-05/0.5488, allocations: 19.98 kB / 1.027 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.5488, allocations: 4 kB / 1.027 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.5488, allocations: 4 kB / 1.027 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.5488, allocations: 4 kB / 1.027 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5488, allocations: 3.984 kB / 1.027 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006671/0.5495, allocations: 471.3 kB / 1.027 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.5496, allocations: 100.9 kB / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.5496, allocations: 8 kB / 1.027 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.5497, allocations: 11.98 kB / 1.027 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.218e-05/0.5498, allocations: 27.95 kB / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.5498, allocations: 4 kB / 1.027 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000171/0.55, allocations: 205.9 kB / 1.027 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.55, allocations: 0 / 1.027 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000265/0.5503, allocations: 59.94 kB / 1.028 GB, free: 7.676 MB / 0.7794 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.0009708/0.5513, allocations: 1.028 MB / 1.029 GB, free: 6.617 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000458/0.5517, allocations: 307.3 kB / 1.029 GB, free: 6.305 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.5517, allocations: 0 / 1.029 GB, free: 6.305 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.552, allocations: 183.3 kB / 1.029 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.5522, allocations: 30.11 kB / 1.029 GB, free: 6.086 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.5554, allocations: 2.784 MB / 1.032 GB, free: 3.195 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.5557, allocations: 0.7514 MB / 1.032 GB, free: 2.418 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.306e-05/0.5558, allocations: 21.53 kB / 1.032 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.5559, allocations: 75.42 kB / 1.033 GB, free: 2.324 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.5559, allocations: 0 / 1.033 GB, free: 2.324 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02217/0.5781, allocations: 5.339 MB / 1.038 GB, free: 13.07 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.162/7.74, allocations: 6.703 kB / 1.038 GB, free: 13.07 MB / 0.795 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