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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.001757/0.001757, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.001873/0.001873, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.633/2.633, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.7/4.7, allocations: 409.2 MB / 0.6838 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007681/0.0007684, allocations: 12 kB / 0.8375 GB, free: 6.559 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.738/1.739, allocations: 146.8 MB / 0.9809 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004196/1.743, allocations: 1.61 MB / 0.9824 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002315/1.745, allocations: 0.655 MB / 0.9831 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/1.745, allocations: 4 kB / 0.9831 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003596/1.746, allocations: 71.75 kB / 0.9832 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003198/1.746, allocations: 87.8 kB / 0.9832 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001054/1.747, allocations: 127.8 kB / 0.9834 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004966/1.748, allocations: 151.7 kB / 0.9835 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003182/1.748, allocations: 55.89 kB / 0.9836 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003945/1.748, allocations: 87.66 kB / 0.9836 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003297/1.749, allocations: 107.6 kB / 0.9837 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.432e-05/1.749, allocations: 8 kB / 0.9838 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002472/1.749, allocations: 71.92 kB / 0.9838 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001227/1.749, allocations: 47.83 kB / 0.9839 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001344/1.749, allocations: 57.58 kB / 0.9839 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005788/1.75, allocations: 219.4 kB / 0.9841 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/1.75, allocations: 0 / 0.9841 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.989e-06/1.75, allocations: 0 / 0.9841 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.029e-05/1.75, allocations: 4 kB / 0.9841 GB, free: 2.926 MB / 0.7325 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.001854/1.752, allocations: 0.5429 MB / 0.9847 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 9.232e-05/1.752, allocations: 8.031 kB / 0.9847 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/1.752, allocations: 50.55 kB / 0.9847 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/1.752, allocations: 23.72 kB / 0.9847 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009624/1.753, allocations: 305.5 kB / 0.985 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.562e-05/1.753, allocations: 15.98 kB / 0.9851 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.304e-05/1.753, allocations: 16 kB / 0.9851 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007999/1.754, allocations: 227.1 kB / 0.9853 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/1.754, allocations: 0 / 0.9853 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/1.754, allocations: 4 kB / 0.9853 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/1.754, allocations: 4 kB / 0.9853 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005588/1.755, allocations: 132.3 kB / 0.9854 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/1.757, allocations: 0.6886 MB / 0.9861 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007136/1.758, allocations: 174.5 kB / 0.9863 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/1.758, allocations: 4.172 kB / 0.9863 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006299/1.758, allocations: 185 kB / 0.9864 GB, free: 368 kB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.934e-06/1.758, allocations: 0 / 0.9864 GB, free: 368 kB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.001471/1.76, allocations: 473.4 kB / 0.9869 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001589/1.76, allocations: 136.5 kB / 0.987 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005738/1.761, allocations: 270.7 kB / 0.9873 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.785e-05/1.761, allocations: 33.7 kB / 0.9873 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002188/1.761, allocations: 160.2 kB / 0.9875 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.792e-05/1.761, allocations: 39.44 kB / 0.9875 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.026e-05/1.761, allocations: 8 kB / 0.9875 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002605/1.761, allocations: 334.8 kB / 0.9878 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002759/1.762, allocations: 92.14 kB / 0.9879 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/1.762, allocations: 129.5 kB / 0.988 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/1.762, allocations: 117.7 kB / 0.9882 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/1.762, allocations: 3.984 kB / 0.9882 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008629/1.763, allocations: 346.7 kB / 0.9885 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.738e-05/1.763, allocations: 37.69 kB / 0.9885 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/1.763, allocations: 4 kB / 0.9885 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/1.763, allocations: 0 / 0.9885 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/1.763, allocations: 27.98 kB / 0.9886 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.166e-05/1.764, allocations: 11.89 kB / 0.9886 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/1.764, allocations: 27.92 kB / 0.9886 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.281e-05/1.764, allocations: 8 kB / 0.9886 GB, free: 14.02 MB / 0.7481 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003208/1.764, allocations: 192.9 kB / 0.9888 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.021e-05/1.764, allocations: 27.72 kB / 0.9888 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.139e-05/1.764, allocations: 25.83 kB / 0.9888 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/1.764, allocations: 0 / 0.9888 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/1.764, allocations: 0 / 0.9888 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/1.764, allocations: 7.953 kB / 0.9888 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005506/1.765, allocations: 297.3 kB / 0.9891 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/1.765, allocations: 0 / 0.9891 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/1.765, allocations: 19.92 kB / 0.9891 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/1.765, allocations: 0 / 0.9891 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/1.765, allocations: 8 kB / 0.9891 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/1.765, allocations: 0 / 0.9891 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.765, allocations: 0 / 0.9891 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/1.767, allocations: 483.5 kB / 0.9896 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/1.767, allocations: 100.8 kB / 0.9897 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.181e-05/1.767, allocations: 4 kB / 0.9897 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/1.767, allocations: 24.05 kB / 0.9897 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/1.767, allocations: 31.89 kB / 0.9898 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/1.767, allocations: 4 kB / 0.9898 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003613/1.768, allocations: 201.9 kB / 0.99 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/1.768, allocations: 0 / 0.99 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000502/1.768, allocations: 60.03 kB / 0.99 GB, free: 12.46 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002051/1.77, allocations: 1.037 MB / 0.991 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000815/1.771, allocations: 299.3 kB / 0.9913 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/1.771, allocations: 0 / 0.9913 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004347/1.772, allocations: 187.3 kB / 0.9915 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/1.772, allocations: 38.44 kB / 0.9915 GB, free: 10.85 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004799/1.777, allocations: 2.067 MB / 0.9935 GB, free: 8.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006126/1.778, allocations: 0.7597 MB / 0.9943 GB, free: 7.945 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001687/1.778, allocations: 21.53 kB / 0.9943 GB, free: 7.922 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/1.778, allocations: 71.41 kB / 0.9944 GB, free: 7.852 MB / 0.7481 GB Notification: Performance of SimCode: time 2.325e-06/1.778, allocations: 0 / 0.9944 GB, free: 7.852 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07464/1.853, allocations: 4.855 MB / 0.9991 GB, free: 3.148 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0008958/1.854, allocations: 187.9 kB / 0.9993 GB, free: 2.906 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.587/5.441, allocations: 1.969 kB / 0.9993 GB, free: 2.906 MB / 0.7481 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/linux/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=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: