Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8607/0.8607, allocations: 143.3 MB / 158.3 MB, free: 5.777 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 179.5 kB / 191.5 MB, free: 5.773 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.558/1.558, allocations: 223.2 MB / 447.7 MB, free: 4.848 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 99.05 kB / 0.5187 GB, free: 1.207 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001944/0.001944, allocations: 263 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004648/0.0004648, allocations: 21.12 kB / 0.6929 GB, free: 59.58 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1746, allocations: 82.8 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5648/0.7394, allocations: 111.7 MB / 0.8829 GB, free: 32.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.7397, allocations: 88 kB / 0.883 GB, free: 32.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01715/0.7568, allocations: 5.904 MB / 0.8888 GB, free: 31.85 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.435e-06/0.7569, allocations: 0 / 0.8888 GB, free: 31.85 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.675e-05/0.7569, allocations: 6.75 kB / 0.8888 GB, free: 31.85 MB / 0.5417 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.0008411/0.7578, allocations: 0.594 MB / 0.8894 GB, free: 31.36 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.7578, allocations: 8.281 kB / 0.8894 GB, free: 31.36 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.899e-05/0.7579, allocations: 52.98 kB / 0.8894 GB, free: 31.32 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.557e-05/0.758, allocations: 27.5 kB / 0.8894 GB, free: 31.31 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000421/0.7584, allocations: 293 kB / 0.8897 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.7584, allocations: 9.5 kB / 0.8897 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.7585, allocations: 14.91 kB / 0.8897 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/0.7589, allocations: 264.8 kB / 0.89 GB, free: 31 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.759, allocations: 3.938 kB / 0.89 GB, free: 30.99 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.759, allocations: 6.438 kB / 0.89 GB, free: 30.99 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.759, allocations: 2.906 kB / 0.89 GB, free: 30.99 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003153/0.7593, allocations: 165.7 kB / 0.8902 GB, free: 30.98 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009598/0.7603, allocations: 0.7281 MB / 0.8909 GB, free: 30.53 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004668/0.7608, allocations: 225.9 kB / 0.8911 GB, free: 30.49 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.7608, allocations: 1.562 kB / 0.8911 GB, free: 30.49 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003358/0.7611, allocations: 207 kB / 0.8913 GB, free: 30.41 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.7612, allocations: 0 / 0.8913 GB, free: 30.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.0009364/0.7621, allocations: 0.5606 MB / 0.8918 GB, free: 30.23 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.7622, allocations: 138 kB / 0.892 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.7624, allocations: 250.2 kB / 0.8922 GB, free: 29.98 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.7624, allocations: 35.2 kB / 0.8922 GB, free: 29.95 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.228e-05/0.7625, allocations: 151.3 kB / 0.8924 GB, free: 29.85 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.7626, allocations: 40 kB / 0.8924 GB, free: 29.83 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.453e-05/0.7626, allocations: 9.906 kB / 0.8924 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.778e-05/0.7627, allocations: 337.2 kB / 0.8928 GB, free: 29.51 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.7629, allocations: 122.7 kB / 0.8929 GB, free: 29.5 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002246/0.7631, allocations: 157.9 kB / 0.893 GB, free: 29.45 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.7633, allocations: 150.9 kB / 0.8932 GB, free: 29.41 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.7634, allocations: 0 / 0.8932 GB, free: 29.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006269/0.764, allocations: 415.2 kB / 0.8936 GB, free: 29.32 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.802e-05/0.764, allocations: 41.62 kB / 0.8936 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.764, allocations: 4.625 kB / 0.8936 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.7641, allocations: 0 / 0.8936 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.7642, allocations: 34.84 kB / 0.8936 GB, free: 29.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.7642, allocations: 2.719 kB / 0.8936 GB, free: 29.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.7644, allocations: 39.16 kB / 0.8937 GB, free: 29.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.483e-05/0.7644, allocations: 13.44 kB / 0.8937 GB, free: 29.27 MB / 0.5417 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.0001583/0.7646, allocations: 189.1 kB / 0.8939 GB, free: 29.12 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.7646, allocations: 25.09 kB / 0.8939 GB, free: 29.11 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.781e-05/0.7647, allocations: 41.64 kB / 0.8939 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.7647, allocations: 0 / 0.8939 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.7647, allocations: 2.594 kB / 0.8939 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.7647, allocations: 0 / 0.8939 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.765, allocations: 295.8 kB / 0.8942 GB, free: 28.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.765, allocations: 2.812 kB / 0.8942 GB, free: 28.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.7651, allocations: 23.84 kB / 0.8942 GB, free: 28.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.7651, allocations: 1.594 kB / 0.8942 GB, free: 28.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.408e-05/0.7652, allocations: 13.75 kB / 0.8943 GB, free: 28.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.7652, allocations: 9.141 kB / 0.8943 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.7652, allocations: 0 / 0.8943 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.7662, allocations: 0.581 MB / 0.8948 GB, free: 28.77 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.7663, allocations: 96.2 kB / 0.8949 GB, free: 28.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.206e-05/0.7663, allocations: 9.094 kB / 0.8949 GB, free: 28.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.7665, allocations: 36 kB / 0.895 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.93e-05/0.7666, allocations: 33.23 kB / 0.895 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.259e-05/0.7667, allocations: 12.19 kB / 0.895 GB, free: 28.66 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002318/0.7669, allocations: 200.9 kB / 0.8952 GB, free: 28.57 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7669, allocations: 0 / 0.8952 GB, free: 28.57 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003889/0.7673, allocations: 68.3 kB / 0.8953 GB, free: 28.56 MB / 0.5417 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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.001338/0.7687, allocations: 1.065 MB / 0.8963 GB, free: 27.91 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005788/0.7693, allocations: 316.7 kB / 0.8966 GB, free: 27.84 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.7693, allocations: 0 / 0.8966 GB, free: 27.84 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002925/0.7696, allocations: 198.2 kB / 0.8968 GB, free: 27.78 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.7698, allocations: 34.98 kB / 0.8968 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003687/0.7735, allocations: 2.112 MB / 0.8989 GB, free: 42.74 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.7739, allocations: 0.7571 MB / 0.8996 GB, free: 42.04 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 9.444e-05/0.774, allocations: 17.86 kB / 0.8997 GB, free: 42.04 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.7741, allocations: 69.83 kB / 0.8997 GB, free: 42.03 MB / 0.5573 GB Notification: Performance of SimCode: time 5.01e-07/0.7741, allocations: 0 / 0.8997 GB, free: 42.03 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.7912, allocations: 4.928 MB / 0.9045 GB, free: 41.65 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/0.7915, allocations: 200.8 kB / 0.9047 GB, free: 41.41 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/2.857, allocations: 0.5312 kB / 0.9047 GB, free: 41.41 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)