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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 104.6 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.697/2.697, allocations: 476.7 MB / 0.7611 GB, free: 11.32 MB / 0.6231 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 67.89 kB / 1.104 GB, free: 9.289 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8375/0.8395, allocations: 168.7 MB / 1.269 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003704/0.8432, allocations: 1.969 MB / 1.271 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001481/0.8447, allocations: 0.709 MB / 1.271 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.8449, allocations: 8 kB / 1.271 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002613/0.8451, allocations: 87.64 kB / 1.271 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.8453, allocations: 87.56 kB / 1.272 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006245/0.8459, allocations: 186.4 kB / 1.272 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003858/0.8463, allocations: 267.4 kB / 1.272 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.8465, allocations: 49.88 kB / 1.272 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001735/0.8466, allocations: 115.6 kB / 1.272 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002253/0.8469, allocations: 159.5 kB / 1.272 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.138e-05/0.8469, allocations: 20 kB / 1.272 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.8471, allocations: 95.92 kB / 1.272 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.221e-05/0.8471, allocations: 51.84 kB / 1.272 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.8473, allocations: 111.3 kB / 1.273 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004257/0.8477, allocations: 318.7 kB / 1.273 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.8477, allocations: 3.938 kB / 1.273 GB, free: 1 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.272e-06/0.8477, allocations: 0 / 1.273 GB, free: 1 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.8477, allocations: 0 / 1.273 GB, free: 1 MB / 0.9669 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.001033/0.8487, allocations: 0.5894 MB / 1.273 GB, free: 364 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.8488, allocations: 8.031 kB / 1.273 GB, free: 356 kB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.2e-05/0.8488, allocations: 50.73 kB / 1.273 GB, free: 296 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.666e-05/0.8489, allocations: 28.8 kB / 1.273 GB, free: 268 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006072/0.8495, allocations: 305.5 kB / 1.274 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.8495, allocations: 8.375 kB / 1.274 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.792e-05/0.8496, allocations: 21.81 kB / 1.274 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.85, allocations: 228.2 kB / 1.274 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.85, allocations: 0 / 1.274 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.85, allocations: 8 kB / 1.274 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.85, allocations: 4 kB / 1.274 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002713/0.8503, allocations: 132.3 kB / 1.274 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009814/0.8513, allocations: 0.6887 MB / 1.275 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.8517, allocations: 150.6 kB / 1.275 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.8518, allocations: 88.94 kB / 1.275 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.8518, allocations: 3.938 kB / 1.275 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003055/0.8522, allocations: 173.1 kB / 1.275 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 5.39e-06/0.8522, allocations: 3.984 kB / 1.275 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0007523/0.8529, allocations: 385.3 kB / 1.276 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.853, allocations: 136.5 kB / 1.276 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.8533, allocations: 270.7 kB / 1.276 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.8534, allocations: 41.62 kB / 1.276 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.8535, allocations: 160.3 kB / 1.276 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.864e-05/0.8535, allocations: 43.58 kB / 1.276 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.191e-05/0.8536, allocations: 41.7 kB / 1.276 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001861/0.8538, allocations: 346.8 kB / 1.277 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.854, allocations: 79.97 kB / 1.277 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.8542, allocations: 135.9 kB / 1.277 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.8546, allocations: 238.8 kB / 1.277 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.8546, allocations: 4 kB / 1.277 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005553/0.8551, allocations: 336.9 kB / 1.277 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.004e-05/0.8552, allocations: 39.58 kB / 1.277 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.8552, allocations: 0 / 1.277 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.8552, allocations: 4.094 kB / 1.277 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.8553, allocations: 27.92 kB / 1.277 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.8554, allocations: 0 / 1.277 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.8555, allocations: 27.88 kB / 1.277 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.8555, allocations: 4 kB / 1.277 GB, free: 11.91 MB / 0.9825 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.0002024/0.8557, allocations: 190 kB / 1.278 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.604e-05/0.8557, allocations: 31.75 kB / 1.278 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.066e-05/0.8558, allocations: 37.83 kB / 1.278 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.8558, allocations: 0 / 1.278 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.8558, allocations: 0 / 1.278 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.8558, allocations: 3.938 kB / 1.278 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003293/0.8561, allocations: 289.5 kB / 1.278 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.8562, allocations: 3.938 kB / 1.278 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.8563, allocations: 15.98 kB / 1.278 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.8563, allocations: 4 kB / 1.278 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.8563, allocations: 4 kB / 1.278 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.8563, allocations: 4 kB / 1.278 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.8563, allocations: 7.984 kB / 1.278 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007782/0.8571, allocations: 470.3 kB / 1.278 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.15e-05/0.8571, allocations: 96.94 kB / 1.279 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.569e-05/0.8572, allocations: 12.17 kB / 1.279 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.8573, allocations: 8 kB / 1.279 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.024e-05/0.8574, allocations: 39.95 kB / 1.279 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.8574, allocations: 4 kB / 1.279 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002049/0.8576, allocations: 205.9 kB / 1.279 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.8576, allocations: 0 / 1.279 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003093/0.8579, allocations: 59.89 kB / 1.279 GB, free: 10.35 MB / 0.9825 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.001207/0.8591, allocations: 1.034 MB / 1.28 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004878/0.8596, allocations: 255.2 kB / 1.28 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8596, allocations: 0 / 1.28 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002355/0.8598, allocations: 155.3 kB / 1.28 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.8602, allocations: 38.05 kB / 1.28 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003927/0.8641, allocations: 2.78 MB / 1.283 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.8645, allocations: 0.7592 MB / 1.284 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.731e-05/0.8646, allocations: 17.55 kB / 1.284 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.8647, allocations: 75.34 kB / 1.284 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of SimCode: time 7.71e-07/0.8647, allocations: 0 / 1.284 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03439/0.8991, allocations: 5.407 MB / 1.289 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.42/9.319, allocations: 14.17 kB / 1.289 GB, free: 15.74 MB / 0.9981 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.33385138772428]