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.00498/0.00498, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.001129/0.001129, allocations: 189 kB / 16.68 MB, free: 6.367 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.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.331/2.331, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 66.92 kB / 0.9504 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2377, allocations: 140.4 MB / 1.087 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002819/0.2406, allocations: 1.955 MB / 1.089 GB, free: 4 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.2417, allocations: 0.7093 MB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.058e-05/0.2418, allocations: 4 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.242, allocations: 79.64 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.2421, allocations: 99.56 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005251/0.2427, allocations: 182.8 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.243, allocations: 267.4 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.2431, allocations: 73.58 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.2432, allocations: 119.6 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.2434, allocations: 151.5 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.2435, allocations: 20 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.2437, allocations: 95.92 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.228e-05/0.2438, allocations: 59.77 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.2439, allocations: 111.4 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003567/0.2442, allocations: 306.8 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2442, allocations: 4 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2443, allocations: 0 / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.2443, allocations: 0 / 1.092 GB, free: 13.75 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.0007821/0.2451, allocations: 0.5855 MB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2451, allocations: 16.03 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.559e-05/0.2452, allocations: 46.73 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.99e-05/0.2452, allocations: 36.75 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004798/0.2457, allocations: 303.1 kB / 1.093 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.2457, allocations: 12.38 kB / 1.093 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/0.2458, allocations: 20.31 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003595/0.2461, allocations: 223.6 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.2462, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.2462, allocations: 8 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.2462, allocations: 0 / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.2464, allocations: 132.3 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007577/0.2472, allocations: 0.6886 MB / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003482/0.2476, allocations: 170.5 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.2477, allocations: 96.91 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.2478, allocations: 4 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002752/0.248, allocations: 169.1 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.953e-06/0.2481, allocations: 0 / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0006594/0.2487, allocations: 371.1 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.63e-05/0.2488, allocations: 140.5 kB / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.2491, allocations: 274.7 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.2491, allocations: 37.69 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.2492, allocations: 152.3 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.098e-05/0.2493, allocations: 51.62 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.859e-05/0.2494, allocations: 41.7 kB / 1.095 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2495, allocations: 346.7 kB / 1.095 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.2497, allocations: 83.97 kB / 1.095 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.2499, allocations: 135 kB / 1.096 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.2502, allocations: 240.1 kB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2502, allocations: 0 / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004776/0.2507, allocations: 335 kB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.2507, allocations: 37.7 kB / 1.096 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.2507, allocations: 96 / 1.096 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.2508, allocations: 7.984 kB / 1.096 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.2509, allocations: 27.92 kB / 1.096 GB, free: 8.688 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2509, allocations: 0 / 1.096 GB, free: 8.688 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.251, allocations: 27.88 kB / 1.096 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.2511, allocations: 7.984 kB / 1.096 GB, free: 8.652 MB / 0.8575 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.0001585/0.2512, allocations: 187.5 kB / 1.096 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.2513, allocations: 27.81 kB / 1.096 GB, free: 8.426 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.372e-05/0.2513, allocations: 37.83 kB / 1.096 GB, free: 8.391 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2513, allocations: 3.938 kB / 1.096 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2514, allocations: 0 / 1.096 GB, free: 8.387 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.2514, allocations: 3.938 kB / 1.096 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.2516, allocations: 289.4 kB / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2516, allocations: 0 / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.2517, allocations: 15.98 kB / 1.097 GB, free: 8.035 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2517, allocations: 4 kB / 1.097 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2517, allocations: 4 kB / 1.097 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.2518, allocations: 8.078 kB / 1.097 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2518, allocations: 7.938 kB / 1.097 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006994/0.2525, allocations: 468.3 kB / 1.097 GB, free: 7.531 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.869e-05/0.2525, allocations: 100.9 kB / 1.097 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.2526, allocations: 11.98 kB / 1.097 GB, free: 7.402 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.2527, allocations: 11.98 kB / 1.097 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.154e-05/0.2528, allocations: 28.02 kB / 1.097 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.2528, allocations: 12 kB / 1.097 GB, free: 7.352 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001693/0.253, allocations: 201.9 kB / 1.098 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.253, allocations: 4 kB / 1.098 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002778/0.2533, allocations: 55.83 kB / 1.098 GB, free: 7.098 MB / 0.8575 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.001021/0.2543, allocations: 1.023 MB / 1.099 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004575/0.2548, allocations: 295.2 kB / 1.099 GB, free: 5.742 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2548, allocations: 0 / 1.099 GB, free: 5.742 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.255, allocations: 179.5 kB / 1.099 GB, free: 5.555 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.2553, allocations: 38.78 kB / 1.099 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/0.2588, allocations: 2.78 MB / 1.102 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.2591, allocations: 0.7553 MB / 1.103 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.211e-05/0.2592, allocations: 21.48 kB / 1.103 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.2593, allocations: 75.41 kB / 1.103 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of SimCode: time 5.11e-07/0.2593, allocations: 0 / 1.103 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.2813, allocations: 5.405 MB / 1.108 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.57/7.851, allocations: 5.625 kB / 1.108 GB, free: 12.45 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