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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 106.7 kB / 16.45 MB, free: 6.035 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.002006/0.002006, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.512/1.512, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.617/2.617, allocations: 443.5 MB / 0.7287 GB, free: 13.25 MB / 0.5919 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 67.89 kB / 1.056 GB, free: 5.891 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8872/0.8891, allocations: 160.7 MB / 1.213 GB, free: 3.922 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004026/0.8932, allocations: 1.97 MB / 1.215 GB, free: 2.383 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.8946, allocations: 0.7088 MB / 1.216 GB, free: 1.82 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.8947, allocations: 6.25 kB / 1.216 GB, free: 1.816 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0002554/0.895, allocations: 87 kB / 1.216 GB, free: 1.766 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001556/0.8951, allocations: 92.19 kB / 1.216 GB, free: 1.711 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006044/0.8957, allocations: 185.4 kB / 1.216 GB, free: 1.578 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003656/0.8961, allocations: 266.9 kB / 1.216 GB, free: 1.422 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.8963, allocations: 41.88 kB / 1.216 GB, free: 1.398 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.8964, allocations: 121.6 kB / 1.216 GB, free: 1.324 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.8967, allocations: 159.9 kB / 1.216 GB, free: 1.234 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.106e-05/0.8967, allocations: 20.81 kB / 1.216 GB, free: 1.234 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.8969, allocations: 93.17 kB / 1.217 GB, free: 1.195 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.452e-05/0.897, allocations: 58.25 kB / 1.217 GB, free: 1.152 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.8971, allocations: 108.1 kB / 1.217 GB, free: 1.066 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000485/0.8976, allocations: 323.2 kB / 1.217 GB, free: 0.832 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.8976, allocations: 0 / 1.217 GB, free: 0.832 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.235e-06/0.8976, allocations: 0 / 1.217 GB, free: 0.832 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.653e-06/0.8976, allocations: 0 / 1.217 GB, free: 0.832 MB / 0.92 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.0009925/0.8986, allocations: 0.592 MB / 1.218 GB, free: 280 kB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.8986, allocations: 10.44 kB / 1.218 GB, free: 280 kB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.577e-05/0.8987, allocations: 47.67 kB / 1.218 GB, free: 228 kB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.966e-05/0.8988, allocations: 31.19 kB / 1.218 GB, free: 212 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006246/0.8994, allocations: 302.7 kB / 1.218 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.8994, allocations: 11.44 kB / 1.218 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.74e-05/0.8995, allocations: 13.5 kB / 1.218 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004488/0.8999, allocations: 230.1 kB / 1.218 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.8999, allocations: 0 / 1.218 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.9, allocations: 10.55 kB / 1.218 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.9, allocations: 2.906 kB / 1.218 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.9002, allocations: 127.2 kB / 1.218 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.9013, allocations: 0.6886 MB / 1.219 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003767/0.9016, allocations: 154.3 kB / 1.219 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.9018, allocations: 87.33 kB / 1.219 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.9018, allocations: 2.156 kB / 1.219 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003404/0.9022, allocations: 176.9 kB / 1.219 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.9022, allocations: 0 / 1.219 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15): time 0.0007621/0.9029, allocations: 379.5 kB / 1.22 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.903, allocations: 132 kB / 1.22 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003386/0.9034, allocations: 284.1 kB / 1.22 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.9034, allocations: 33.27 kB / 1.22 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.9035, allocations: 157.9 kB / 1.22 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.062e-05/0.9036, allocations: 45.8 kB / 1.22 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.246e-05/0.9037, allocations: 45.89 kB / 1.22 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001795/0.9039, allocations: 346.2 kB / 1.221 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.904, allocations: 83.64 kB / 1.221 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.9043, allocations: 130.8 kB / 1.221 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.9046, allocations: 245.5 kB / 1.221 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.9046, allocations: 0 / 1.221 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006124/0.9052, allocations: 333.7 kB / 1.222 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.209e-05/0.9053, allocations: 41.06 kB / 1.222 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.9053, allocations: 5.406 kB / 1.222 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.9053, allocations: 2.531 kB / 1.222 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.9054, allocations: 20.92 kB / 1.222 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.9055, allocations: 2.125 kB / 1.222 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.9056, allocations: 26.22 kB / 1.222 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.9056, allocations: 6.375 kB / 1.222 GB, free: 13.16 MB / 0.9356 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.0002286/0.9058, allocations: 194.3 kB / 1.222 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.843e-05/0.9059, allocations: 28.27 kB / 1.222 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.27e-05/0.906, allocations: 31.83 kB / 1.222 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.906, allocations: 1.188 kB / 1.222 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.906, allocations: 0 / 1.222 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.906, allocations: 1.125 kB / 1.222 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.9063, allocations: 293.3 kB / 1.222 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.9063, allocations: 1 kB / 1.222 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.9064, allocations: 15.7 kB / 1.222 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.9064, allocations: 1.594 kB / 1.222 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.9065, allocations: 6.344 kB / 1.222 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.9065, allocations: 5.531 kB / 1.222 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.9065, allocations: 0 / 1.222 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007975/0.9073, allocations: 473.8 kB / 1.223 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.597e-05/0.9073, allocations: 99.05 kB / 1.223 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.583e-05/0.9074, allocations: 8 kB / 1.223 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.9075, allocations: 19.77 kB / 1.223 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.439e-05/0.9076, allocations: 30.23 kB / 1.223 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.9076, allocations: 4.5 kB / 1.223 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002496/0.9079, allocations: 201 kB / 1.223 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9079, allocations: 0 / 1.223 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003133/0.9082, allocations: 63.52 kB / 1.223 GB, free: 12.11 MB / 0.9356 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.001245/0.9094, allocations: 1.027 MB / 1.224 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005073/0.9099, allocations: 265.4 kB / 1.224 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.9099, allocations: 5.219 kB / 1.224 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.9102, allocations: 155 kB / 1.224 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.9105, allocations: 33.83 kB / 1.224 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003984/0.9145, allocations: 2.789 MB / 1.227 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.915, allocations: 0.7514 MB / 1.228 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001111/0.9151, allocations: 29.52 kB / 1.228 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.9152, allocations: 67.42 kB / 1.228 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of SimCode: time 7.52e-07/0.9152, allocations: 0 / 1.228 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03391/0.9491, allocations: 5.423 MB / 1.233 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.349/9.298, allocations: 4.656 kB / 1.233 GB, free: 2.828 MB / 0.9356 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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.288173672743142]