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.001659/0.001659, 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.002225/0.002226, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.387/1.387, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.628/2.628, allocations: 437 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002483/0.002483, allocations: 63.89 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.642/0.6445, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003074/0.6476, allocations: 1.948 MB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.6489, allocations: 0.709 MB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.649, allocations: 7.938 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002206/0.6493, allocations: 87.62 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.6494, allocations: 95.56 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006236/0.6501, allocations: 180.9 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003471/0.6504, allocations: 259.4 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.6506, allocations: 72.14 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.6508, allocations: 123.6 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002041/0.651, allocations: 143.5 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.372e-05/0.6511, allocations: 24 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.6512, allocations: 87.94 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.243e-05/0.6513, allocations: 55.77 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.6514, allocations: 115.3 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.6518, allocations: 295 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.6518, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.342e-06/0.6518, allocations: 4 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.748e-06/0.6518, allocations: 3.984 kB / 1.021 GB, free: 14.27 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.0008321/0.6527, allocations: 0.5741 MB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.6527, allocations: 8.031 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.99e-05/0.6528, allocations: 50.73 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.693e-05/0.6528, allocations: 24.66 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004717/0.6533, allocations: 306.8 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.6533, allocations: 12.38 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.6534, allocations: 16.38 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.6538, allocations: 227.1 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.6538, allocations: 0 / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.6538, allocations: 8 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.6539, allocations: 4 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002587/0.6541, allocations: 125.5 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008389/0.655, allocations: 0.6847 MB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003667/0.6553, allocations: 174.6 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.6555, allocations: 96.83 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.6555, allocations: 3.984 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003235/0.6559, allocations: 169 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.6559, allocations: 0 / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.000755/0.6566, allocations: 381 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.821e-05/0.6567, allocations: 136.5 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/0.6571, allocations: 278.7 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.6571, allocations: 29.7 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.6573, allocations: 160.3 kB / 1.025 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.6573, allocations: 51.38 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.657e-05/0.6574, allocations: 33.72 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.6576, allocations: 342.8 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.6578, allocations: 87.95 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.658, allocations: 133.7 kB / 1.025 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.6584, allocations: 240.1 kB / 1.026 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.6584, allocations: 0 / 1.026 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005163/0.6589, allocations: 332.5 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/0.6589, allocations: 41.69 kB / 1.026 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.659, allocations: 0 / 1.026 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.659, allocations: 8.094 kB / 1.026 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.6591, allocations: 19.98 kB / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.6591, allocations: 4 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.6593, allocations: 27.83 kB / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.6593, allocations: 8 kB / 1.026 GB, free: 9.203 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.0001736/0.6595, allocations: 195.3 kB / 1.026 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.283e-05/0.6595, allocations: 27.72 kB / 1.026 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.489e-05/0.6596, allocations: 33.83 kB / 1.026 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.6596, allocations: 3.938 kB / 1.026 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6596, allocations: 4 kB / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.6596, allocations: 0 / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002505/0.6599, allocations: 285.6 kB / 1.027 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.6599, allocations: 0 / 1.027 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001069/0.66, allocations: 15.98 kB / 1.027 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.66, allocations: 0 / 1.027 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.66, allocations: 7.984 kB / 1.027 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.66, allocations: 0 / 1.027 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.6601, allocations: 7.938 kB / 1.027 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007169/0.6608, allocations: 475.4 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.063e-05/0.6608, allocations: 92.86 kB / 1.027 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.433e-05/0.6609, allocations: 8 kB / 1.027 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.661, allocations: 11.98 kB / 1.027 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.6611, allocations: 32.02 kB / 1.027 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.387e-05/0.6612, allocations: 8 kB / 1.027 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001845/0.6613, allocations: 198 kB / 1.027 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.773e-06/0.6613, allocations: 0 / 1.027 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002969/0.6617, allocations: 67.86 kB / 1.028 GB, free: 7.656 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.001085/0.6627, allocations: 1.026 MB / 1.029 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005108/0.6633, allocations: 303.2 kB / 1.029 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.6633, allocations: 4 kB / 1.029 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002311/0.6635, allocations: 179.5 kB / 1.029 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.6638, allocations: 38.11 kB / 1.029 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003631/0.6675, allocations: 2.771 MB / 1.032 GB, free: 3.184 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.6678, allocations: 0.7531 MB / 1.032 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000101/0.6679, allocations: 21.53 kB / 1.032 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.6681, allocations: 67.42 kB / 1.033 GB, free: 2.32 MB / 0.7794 GB Notification: Performance of SimCode: time 8.02e-07/0.6681, allocations: 0 / 1.033 GB, free: 2.32 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02417/0.6922, allocations: 5.349 MB / 1.038 GB, free: 13.06 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.338/8.031, allocations: 12 kB / 1.038 GB, free: 13.05 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 & /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 --timeout=50 --tolerance=1e-06 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.mat","/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