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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001407/0.001407, allocations: 172.7 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 1.342/1.342, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001829/0.001829, allocations: 277.6 kB / 291.3 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9505/0.9505, allocations: 169.5 MB / 0.5 GB, free: 14.24 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004588/0.0004588, allocations: 12.22 kB / 0.598 GB, free: 28.57 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.2023, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002187/0.2045, allocations: 1.609 MB / 0.686 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.2057, allocations: 0.655 MB / 0.6867 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.2058, allocations: 6.062 kB / 0.6867 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002151/0.206, allocations: 67.77 kB / 0.6868 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.2062, allocations: 80.86 kB / 0.6868 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.2066, allocations: 136.6 kB / 0.687 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.2069, allocations: 219.5 kB / 0.6872 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.207, allocations: 57.41 kB / 0.6872 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.2072, allocations: 80.47 kB / 0.6873 GB, free: 12.56 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.2074, allocations: 125.1 kB / 0.6874 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.687e-05/0.2075, allocations: 4 kB / 0.6874 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.2076, allocations: 75.88 kB / 0.6875 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.198e-05/0.2076, allocations: 43.83 kB / 0.6875 GB, free: 12.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.911e-05/0.2077, allocations: 62.61 kB / 0.6876 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002555/0.208, allocations: 215.6 kB / 0.6878 GB, free: 12.04 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.208, allocations: 0.7188 kB / 0.6878 GB, free: 12.04 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.208, allocations: 0 / 0.6878 GB, free: 12.04 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.208, allocations: 3.156 kB / 0.6878 GB, free: 12.04 MB / 494.1 MB 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.0008206/0.2088, allocations: 0.5442 MB / 0.6883 GB, free: 11.45 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2089, allocations: 12.03 kB / 0.6884 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.873e-05/0.2089, allocations: 27.67 kB / 0.6884 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.2094, allocations: 303.8 kB / 0.6887 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.2094, allocations: 16.81 kB / 0.6887 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.857e-05/0.2094, allocations: 16 kB / 0.6887 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.2098, allocations: 223.2 kB / 0.6889 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.2098, allocations: 0.625 kB / 0.6889 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.2099, allocations: 11.98 kB / 0.6889 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2099, allocations: 7.953 kB / 0.6889 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002307/0.2101, allocations: 132.4 kB / 0.6891 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008479/0.211, allocations: 0.6847 MB / 0.6897 GB, free: 9.914 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003401/0.2113, allocations: 174.7 kB / 0.6899 GB, free: 9.734 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.2115, allocations: 104.9 kB / 0.69 GB, free: 9.629 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.2115, allocations: 3.938 kB / 0.69 GB, free: 9.625 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.2118, allocations: 169 kB / 0.6902 GB, free: 9.441 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 9.848e-06/0.2118, allocations: 0 / 0.6902 GB, free: 9.441 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006267/0.2125, allocations: 400.5 kB / 0.6905 GB, free: 9.039 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/0.2125, allocations: 140.5 kB / 0.6907 GB, free: 8.871 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.2128, allocations: 274.7 kB / 0.6909 GB, free: 8.598 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.2129, allocations: 33.7 kB / 0.691 GB, free: 8.559 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.213, allocations: 160.2 kB / 0.6911 GB, free: 8.398 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.836e-05/0.213, allocations: 39.45 kB / 0.6912 GB, free: 8.359 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-06/0.213, allocations: 0 / 0.6912 GB, free: 8.359 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.2132, allocations: 338.8 kB / 0.6915 GB, free: 8.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.2134, allocations: 92.14 kB / 0.6916 GB, free: 7.93 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.2136, allocations: 130.2 kB / 0.6917 GB, free: 7.785 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/0.2138, allocations: 123.5 kB / 0.6918 GB, free: 7.66 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2138, allocations: 0 / 0.6918 GB, free: 7.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005193/0.2143, allocations: 350.8 kB / 0.6921 GB, free: 7.305 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.2144, allocations: 33.7 kB / 0.6922 GB, free: 7.266 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.2144, allocations: 3.984 kB / 0.6922 GB, free: 7.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.2144, allocations: 0 / 0.6922 GB, free: 7.262 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.2145, allocations: 23.98 kB / 0.6922 GB, free: 7.238 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.2145, allocations: 7.938 kB / 0.6922 GB, free: 7.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.2146, allocations: 27.83 kB / 0.6922 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.2147, allocations: 12.09 kB / 0.6923 GB, free: 7.191 MB / 494.1 MB 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.0001656/0.2148, allocations: 186.8 kB / 0.6924 GB, free: 6.996 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.34e-05/0.2149, allocations: 31.7 kB / 0.6925 GB, free: 6.965 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.189e-05/0.2149, allocations: 25.84 kB / 0.6925 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2149, allocations: 0 / 0.6925 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2149, allocations: 0 / 0.6925 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.215, allocations: 8.078 kB / 0.6925 GB, free: 6.934 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.2152, allocations: 293.3 kB / 0.6928 GB, free: 6.598 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2152, allocations: 4 kB / 0.6928 GB, free: 6.594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.2153, allocations: 23.92 kB / 0.6928 GB, free: 6.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2153, allocations: 3.938 kB / 0.6928 GB, free: 6.566 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.2154, allocations: 11.98 kB / 0.6928 GB, free: 6.555 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2154, allocations: 0 / 0.6928 GB, free: 6.555 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2154, allocations: 0 / 0.6928 GB, free: 6.555 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006567/0.216, allocations: 480.4 kB / 0.6933 GB, free: 6.062 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.279e-05/0.2161, allocations: 100.8 kB / 0.6934 GB, free: 5.945 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.092e-05/0.2161, allocations: 8 kB / 0.6934 GB, free: 5.938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.2163, allocations: 23.98 kB / 0.6934 GB, free: 5.914 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.697e-05/0.2163, allocations: 23.95 kB / 0.6934 GB, free: 5.891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.2164, allocations: 12 kB / 0.6934 GB, free: 5.879 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002338/0.2166, allocations: 197.9 kB / 0.6936 GB, free: 5.688 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2166, allocations: 0 / 0.6936 GB, free: 5.688 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002707/0.2169, allocations: 56.12 kB / 0.6937 GB, free: 5.633 MB / 494.1 MB 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.0001802/0.2171, allocations: 127.2 kB / 0.6938 GB, free: 5.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004538/0.2175, allocations: 302 kB / 0.6941 GB, free: 5.195 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2175, allocations: 4 kB / 0.6941 GB, free: 5.191 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000224/0.2178, allocations: 191.3 kB / 0.6943 GB, free: 4.992 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.218, allocations: 36.69 kB / 0.6943 GB, free: 4.953 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008921/0.2189, allocations: 0.5143 MB / 0.6948 GB, free: 4.406 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.2193, allocations: 0.748 MB / 0.6955 GB, free: 3.633 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001528/0.2195, allocations: 29.47 kB / 0.6956 GB, free: 3.605 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.2195, allocations: 15.44 kB / 0.6956 GB, free: 3.59 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2195, allocations: 0 / 0.6956 GB, free: 3.59 MB / 494.1 MB Notification: Performance of Templates: time 0.005399/0.225, allocations: 2.457 MB / 0.698 GB, free: 1.152 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)