Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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: translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.001112/0.001112, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001304/0.001304, allocations: 192.9 kB / 16.25 MB, free: 6.637 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.382/1.382, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9377/0.9377, allocations: 135.2 MB / 425.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 59.67 kB / 0.5049 GB, free: 5.613 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1757, allocations: 80.94 MB / 0.5839 GB, free: 4.844 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003698/0.1794, allocations: 2.007 MB / 0.5859 GB, free: 2.812 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.1806, allocations: 0.6897 MB / 0.5866 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.1807, allocations: 0 / 0.5866 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002474/0.181, allocations: 79.7 kB / 0.5866 GB, free: 2.043 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001477/0.1812, allocations: 83.69 kB / 0.5867 GB, free: 1.961 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005804/0.1818, allocations: 162.8 kB / 0.5869 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003266/0.1821, allocations: 271.5 kB / 0.5871 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.1823, allocations: 70.08 kB / 0.5872 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.1824, allocations: 119.6 kB / 0.5873 GB, free: 1.355 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.1826, allocations: 147.5 kB / 0.5875 GB, free: 1.211 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.323e-05/0.1827, allocations: 20 kB / 0.5875 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.1828, allocations: 99.8 kB / 0.5876 GB, free: 1.094 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.632e-05/0.1829, allocations: 67.81 kB / 0.5876 GB, free: 1.027 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.375e-05/0.183, allocations: 103.3 kB / 0.5877 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.1833, allocations: 299.1 kB / 0.588 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1833, allocations: 0 / 0.588 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1833, allocations: 0 / 0.588 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1833, allocations: 0 / 0.588 GB, free: 0.6328 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.0008091/0.1841, allocations: 0.578 MB / 0.5886 GB, free: 0 / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.1842, allocations: 12.08 kB / 0.5886 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.831e-05/0.1843, allocations: 28.56 kB / 0.5886 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.1847, allocations: 306.7 kB / 0.5889 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.1848, allocations: 12.38 kB / 0.5889 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.607e-05/0.1848, allocations: 19.94 kB / 0.589 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003991/0.1852, allocations: 223.1 kB / 0.5892 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/0.1852, allocations: 0 / 0.5892 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.1853, allocations: 8 kB / 0.5892 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1853, allocations: 4 kB / 0.5892 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/0.1855, allocations: 124.4 kB / 0.5893 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008798/0.1864, allocations: 0.6846 MB / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003571/0.1868, allocations: 166.8 kB / 0.5901 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.1869, allocations: 100.8 kB / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.187, allocations: 0 / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003785/0.1874, allocations: 177 kB / 0.5904 GB, free: 14 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 4.158e-06/0.1874, allocations: 3.984 kB / 0.5904 GB, free: 14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006922/0.1881, allocations: 378.8 kB / 0.5908 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.1882, allocations: 128.5 kB / 0.5909 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/0.1884, allocations: 278.7 kB / 0.5911 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.1885, allocations: 33.7 kB / 0.5912 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.1886, allocations: 164.1 kB / 0.5913 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.959e-05/0.1887, allocations: 39.45 kB / 0.5914 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.305e-05/0.1887, allocations: 41.7 kB / 0.5914 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1889, allocations: 338.8 kB / 0.5917 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.189, allocations: 87.89 kB / 0.5918 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.1892, allocations: 141.1 kB / 0.592 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/0.1896, allocations: 236.8 kB / 0.5922 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1897, allocations: 0 / 0.5922 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004785/0.1901, allocations: 334.9 kB / 0.5925 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.342e-05/0.1902, allocations: 41.69 kB / 0.5925 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1902, allocations: 4.094 kB / 0.5925 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1902, allocations: 3.938 kB / 0.5925 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.1903, allocations: 19.98 kB / 0.5926 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.1904, allocations: 4 kB / 0.5926 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.1905, allocations: 35.67 kB / 0.5926 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.1905, allocations: 4 kB / 0.5926 GB, free: 11.6 MB / 0.4981 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.0001713/0.1907, allocations: 196.2 kB / 0.5928 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.812e-05/0.1907, allocations: 23.72 kB / 0.5928 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.579e-05/0.1908, allocations: 29.83 kB / 0.5928 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1908, allocations: 4 kB / 0.5928 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1908, allocations: 0 / 0.5928 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.1908, allocations: 3.938 kB / 0.5929 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.1911, allocations: 285.5 kB / 0.5931 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1911, allocations: 0 / 0.5931 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.1912, allocations: 19.98 kB / 0.5931 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1912, allocations: 0 / 0.5931 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.1912, allocations: 8 kB / 0.5931 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1913, allocations: 0 / 0.5931 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1913, allocations: 0 / 0.5931 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000727/0.192, allocations: 476.9 kB / 0.5936 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.1921, allocations: 92.92 kB / 0.5937 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.1921, allocations: 12 kB / 0.5937 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1922, allocations: 11.98 kB / 0.5937 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/0.1923, allocations: 31.95 kB / 0.5937 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.1923, allocations: 11.88 kB / 0.5938 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001754/0.1925, allocations: 202 kB / 0.5939 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1925, allocations: 0 / 0.5939 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002827/0.1928, allocations: 64.05 kB / 0.594 GB, free: 10.05 MB / 0.4981 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.0001967/0.193, allocations: 131.2 kB / 0.5941 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004765/0.1935, allocations: 291.2 kB / 0.5944 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1935, allocations: 0 / 0.5944 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.1937, allocations: 183.3 kB / 0.5946 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.1941, allocations: 43.36 kB / 0.5946 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.1951, allocations: 0.5476 MB / 0.5952 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.1955, allocations: 0.7475 MB / 0.5959 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.143e-05/0.1957, allocations: 21.55 kB / 0.5959 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.123e-05/0.1957, allocations: 19.42 kB / 0.5959 GB, free: 8 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1957, allocations: 0 / 0.5959 GB, free: 8 MB / 0.4981 GB Notification: Performance of Templates: time 0.006078/0.2018, allocations: 2.661 MB / 0.5985 GB, free: 5.367 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)