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.0008326/0.0008324, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0008258/0.0008259, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.641/2.641, allocations: 409.4 MB / 0.684 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005039/0.000504, allocations: 11.94 kB / 0.8378 GB, free: 6.465 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7235/0.724, allocations: 146.8 MB / 0.9811 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002131/0.7262, allocations: 1.614 MB / 0.9827 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.7273, allocations: 0.6628 MB / 0.9834 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.7274, allocations: 7.938 kB / 0.9834 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.7276, allocations: 83.69 kB / 0.9834 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.7278, allocations: 71.77 kB / 0.9835 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000478/0.7283, allocations: 142.9 kB / 0.9837 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002414/0.7285, allocations: 219.4 kB / 0.9839 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.7287, allocations: 59.88 kB / 0.9839 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.7288, allocations: 83.69 kB / 0.984 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.729, allocations: 115.6 kB / 0.9841 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.729, allocations: 8 kB / 0.9841 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.7291, allocations: 67.88 kB / 0.9842 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.067e-05/0.7292, allocations: 43.83 kB / 0.9842 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.374e-05/0.7293, allocations: 65.58 kB / 0.9843 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002348/0.7295, allocations: 215.5 kB / 0.9845 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.7295, allocations: 0 / 0.9845 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7295, allocations: 0 / 0.9845 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.7295, allocations: 0 / 0.9845 GB, free: 2.746 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.0007662/0.7303, allocations: 0.5507 MB / 0.985 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.7303, allocations: 8.031 kB / 0.985 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.472e-05/0.7304, allocations: 50.55 kB / 0.9851 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.467e-05/0.7305, allocations: 23.72 kB / 0.9851 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.7309, allocations: 309.5 kB / 0.9854 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.7309, allocations: 8 kB / 0.9854 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.171e-05/0.731, allocations: 16 kB / 0.9854 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.7314, allocations: 231.1 kB / 0.9856 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.7314, allocations: 0 / 0.9856 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.7314, allocations: 4 kB / 0.9856 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.7314, allocations: 4 kB / 0.9857 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.7317, allocations: 136.3 kB / 0.9858 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008023/0.7325, allocations: 0.6808 MB / 0.9864 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.7328, allocations: 182.6 kB / 0.9866 GB, free: 380 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.733, allocations: 100.8 kB / 0.9867 GB, free: 276 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.733, allocations: 7.953 kB / 0.9867 GB, free: 268 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003041/0.7333, allocations: 173.1 kB / 0.9869 GB, free: 76 kB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.492e-06/0.7333, allocations: 0 / 0.9869 GB, free: 76 kB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006417/0.734, allocations: 388.1 kB / 0.9873 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.615e-05/0.7341, allocations: 132.5 kB / 0.9874 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.7343, allocations: 282.7 kB / 0.9877 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.7343, allocations: 29.8 kB / 0.9877 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.7344, allocations: 160.1 kB / 0.9878 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.93e-05/0.7345, allocations: 47.44 kB / 0.9879 GB, free: 15 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.168e-05/0.7345, allocations: 4 kB / 0.9879 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.7346, allocations: 338.8 kB / 0.9882 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.7348, allocations: 92.08 kB / 0.9883 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.735, allocations: 133.5 kB / 0.9884 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.7351, allocations: 114.7 kB / 0.9885 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.7352, allocations: 3.953 kB / 0.9885 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004543/0.7356, allocations: 340.5 kB / 0.9889 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.7357, allocations: 37.7 kB / 0.9889 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.7357, allocations: 4 kB / 0.9889 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.7357, allocations: 3.938 kB / 0.9889 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.7358, allocations: 27.94 kB / 0.9889 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.7359, allocations: 0 / 0.9889 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.736, allocations: 31.92 kB / 0.989 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.736, allocations: 8 kB / 0.989 GB, free: 13.83 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.0001607/0.7362, allocations: 191.5 kB / 0.9892 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.192e-05/0.7362, allocations: 27.66 kB / 0.9892 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.131e-05/0.7363, allocations: 33.83 kB / 0.9892 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.7363, allocations: 0 / 0.9892 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.7363, allocations: 7.953 kB / 0.9892 GB, free: 13.56 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.7363, allocations: 3.984 kB / 0.9892 GB, free: 13.56 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002252/0.7365, allocations: 293.3 kB / 0.9895 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.7365, allocations: 4 kB / 0.9895 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.653e-05/0.7366, allocations: 15.98 kB / 0.9895 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.7367, allocations: 0 / 0.9895 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.7367, allocations: 4 kB / 0.9895 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.7367, allocations: 0 / 0.9895 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7367, allocations: 3.984 kB / 0.9895 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006642/0.7374, allocations: 481 kB / 0.99 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.545e-05/0.7374, allocations: 100.8 kB / 0.9901 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.273e-05/0.7375, allocations: 16.05 kB / 0.9901 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.816e-05/0.7376, allocations: 16 kB / 0.9901 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.052e-05/0.7377, allocations: 27.94 kB / 0.9901 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.7377, allocations: 4 kB / 0.9901 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001751/0.7379, allocations: 205.9 kB / 0.9903 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7379, allocations: 0 / 0.9903 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002767/0.7382, allocations: 59.86 kB / 0.9904 GB, free: 12.26 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.0009744/0.7391, allocations: 1.032 MB / 0.9914 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004325/0.7396, allocations: 305.9 kB / 0.9917 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.7396, allocations: 0 / 0.9917 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002421/0.7399, allocations: 191.5 kB / 0.9919 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.7401, allocations: 31.31 kB / 0.9919 GB, free: 10.66 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002311/0.7425, allocations: 1.655 MB / 0.9935 GB, free: 8.953 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.7428, allocations: 0.7534 MB / 0.9943 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.314e-05/0.7429, allocations: 17.55 kB / 0.9943 GB, free: 8.16 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.787e-05/0.743, allocations: 75.41 kB / 0.9944 GB, free: 8.09 MB / 0.7481 GB Notification: Performance of SimCode: time 4.71e-07/0.743, allocations: 0 / 0.9944 GB, free: 8.09 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01626/0.7592, allocations: 4.862 MB / 0.9991 GB, free: 3.375 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/0.7594, allocations: 202.7 kB / 0.9993 GB, free: 3.129 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.647, allocations: 0 / 0.9993 GB, free: 3.129 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: