Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_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.007513/0.007513, allocations: 100.2 kB / 15.73 MB, free: 6.062 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.002161/0.002161, allocations: 189.3 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.175/1.175, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.339/2.339, allocations: 482.6 MB / 0.7551 GB, free: 6.605 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 76.28 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2513, allocations: 162.3 MB / 1.242 GB, free: 8.926 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002687/0.2541, allocations: 1.956 MB / 1.244 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.2551, allocations: 0.7054 MB / 1.244 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.449e-05/0.2552, allocations: 7.938 kB / 1.244 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.2554, allocations: 83.64 kB / 1.245 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.2555, allocations: 91.58 kB / 1.245 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004663/0.256, allocations: 186.8 kB / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002761/0.2563, allocations: 267.4 kB / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.2564, allocations: 73.81 kB / 1.245 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.2565, allocations: 115.7 kB / 1.245 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.2567, allocations: 147.5 kB / 1.245 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.2568, allocations: 20 kB / 1.245 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.2569, allocations: 95.91 kB / 1.245 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.002e-05/0.257, allocations: 63.77 kB / 1.246 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.2571, allocations: 107.3 kB / 1.246 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.2574, allocations: 306.8 kB / 1.246 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2574, allocations: 0 / 1.246 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2575, allocations: 0 / 1.246 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2575, allocations: 0 / 1.246 GB, free: 4.715 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.0007453/0.2582, allocations: 0.5933 MB / 1.247 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 2.789e-05/0.2582, allocations: 8.031 kB / 1.247 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.834e-05/0.2583, allocations: 50.73 kB / 1.247 GB, free: 4 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.801e-05/0.2583, allocations: 28.75 kB / 1.247 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.2588, allocations: 311.1 kB / 1.247 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.2588, allocations: 16.38 kB / 1.247 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.2588, allocations: 12.38 kB / 1.247 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003429/0.2592, allocations: 227.1 kB / 1.247 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.2592, allocations: 0 / 1.247 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.2592, allocations: 4 kB / 1.247 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.2592, allocations: 4 kB / 1.247 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002305/0.2595, allocations: 136.3 kB / 1.247 GB, free: 3.215 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007319/0.2602, allocations: 0.6886 MB / 1.248 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003409/0.2606, allocations: 174.5 kB / 1.248 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.2607, allocations: 96.95 kB / 1.248 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.2607, allocations: 0 / 1.248 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.261, allocations: 173 kB / 1.248 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.261, allocations: 4 kB / 1.248 GB, free: 2 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15): time 0.0006025/0.2616, allocations: 369.6 kB / 1.249 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/0.2617, allocations: 136.5 kB / 1.249 GB, free: 1.465 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002489/0.262, allocations: 282.6 kB / 1.249 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.262, allocations: 33.7 kB / 1.249 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.2621, allocations: 156.3 kB / 1.249 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.595e-05/0.2621, allocations: 39.69 kB / 1.249 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.686e-05/0.2622, allocations: 45.8 kB / 1.249 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.2623, allocations: 350.6 kB / 1.25 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.2625, allocations: 79.95 kB / 1.25 GB, free: 480 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.2627, allocations: 129.1 kB / 1.25 GB, free: 332 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.263, allocations: 242.7 kB / 1.25 GB, free: 64 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.263, allocations: 0 / 1.25 GB, free: 64 kB / 0.9669 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004697/0.2635, allocations: 344.4 kB / 1.25 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.2635, allocations: 45.78 kB / 1.251 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2635, allocations: 4 kB / 1.251 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.867e-06/0.2636, allocations: 0 / 1.251 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.2637, allocations: 23.98 kB / 1.251 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.738e-06/0.2637, allocations: 0 / 1.251 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.2638, allocations: 27.88 kB / 1.251 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.2638, allocations: 4 kB / 1.251 GB, free: 15.61 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.0001563/0.264, allocations: 195.4 kB / 1.251 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.784e-05/0.264, allocations: 27.84 kB / 1.251 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.711e-05/0.2641, allocations: 25.84 kB / 1.251 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.2641, allocations: 4 kB / 1.251 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.2641, allocations: 3.984 kB / 1.251 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.2641, allocations: 0 / 1.251 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002361/0.2643, allocations: 293.3 kB / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2643, allocations: 3.984 kB / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.331e-05/0.2644, allocations: 12 kB / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.2645, allocations: 0 / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.2645, allocations: 15.98 kB / 1.251 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.2645, allocations: 3.938 kB / 1.251 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2645, allocations: 0 / 1.251 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006472/0.2651, allocations: 458.5 kB / 1.252 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/0.2652, allocations: 104.9 kB / 1.252 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.2653, allocations: 8 kB / 1.252 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.561e-05/0.2654, allocations: 20.05 kB / 1.252 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.619e-05/0.2654, allocations: 27.91 kB / 1.252 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.2655, allocations: 4 kB / 1.252 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001757/0.2656, allocations: 205.9 kB / 1.252 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2656, allocations: 3.938 kB / 1.252 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002333/0.2659, allocations: 63.83 kB / 1.252 GB, free: 14.04 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.0009659/0.2668, allocations: 1.027 MB / 1.253 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004211/0.2673, allocations: 287.4 kB / 1.253 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2673, allocations: 4.25 kB / 1.253 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.2675, allocations: 183.3 kB / 1.253 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.2678, allocations: 34.42 kB / 1.253 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003121/0.2709, allocations: 2.785 MB / 1.256 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.2712, allocations: 0.7514 MB / 1.257 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.617e-05/0.2713, allocations: 17.55 kB / 1.257 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.762e-05/0.2714, allocations: 71.41 kB / 1.257 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.2714, allocations: 7.938 kB / 1.257 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.664/7.936, allocations: 5.403 MB / 1.262 GB, free: 3.414 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/18.77, allocations: 7.219 kB / 1.262 GB, free: 3.41 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches