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.001771/0.001771, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002094/0.002094, allocations: 194.9 kB / 16.14 MB, free: 6.645 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.444/1.444, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.074/1.074, allocations: 135.1 MB / 425.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 60.39 kB / 0.5047 GB, free: 5.758 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2014, allocations: 80.93 MB / 0.5837 GB, free: 5.008 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003317/0.2047, allocations: 2.004 MB / 0.5857 GB, free: 2.977 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.206, allocations: 0.7053 MB / 0.5864 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.2061, allocations: 7.938 kB / 0.5864 GB, free: 2.262 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002378/0.2064, allocations: 71.75 kB / 0.5864 GB, free: 2.191 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.2065, allocations: 91.69 kB / 0.5865 GB, free: 2.102 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005064/0.207, allocations: 158.5 kB / 0.5867 GB, free: 1.949 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000259/0.2073, allocations: 239.5 kB / 0.5869 GB, free: 1.715 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.2074, allocations: 62.11 kB / 0.587 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.2076, allocations: 103.7 kB / 0.5871 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.2078, allocations: 143.5 kB / 0.5872 GB, free: 1.414 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.287e-05/0.2078, allocations: 12 kB / 0.5872 GB, free: 1.402 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.208, allocations: 79.88 kB / 0.5873 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.177e-05/0.2081, allocations: 51.81 kB / 0.5873 GB, free: 1.273 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.2082, allocations: 99.34 kB / 0.5874 GB, free: 1.176 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003279/0.2085, allocations: 283.1 kB / 0.5877 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.889e-05/0.2086, allocations: 0 / 0.5877 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.2086, allocations: 3.938 kB / 0.5877 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.2086, allocations: 0 / 0.5877 GB, free: 0.8945 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.0008988/0.2095, allocations: 0.5781 MB / 0.5883 GB, free: 268 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.2095, allocations: 8.031 kB / 0.5883 GB, free: 260 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.517e-05/0.2096, allocations: 36.55 kB / 0.5883 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004486/0.2101, allocations: 298.9 kB / 0.5886 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.2101, allocations: 20.38 kB / 0.5886 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.2102, allocations: 15.94 kB / 0.5886 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003912/0.2105, allocations: 215.9 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2106, allocations: 7.938 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.2106, allocations: 7.938 kB / 0.5888 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.2106, allocations: 8 kB / 0.5889 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002495/0.2109, allocations: 124.4 kB / 0.589 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008769/0.2118, allocations: 0.6885 MB / 0.5896 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000356/0.2121, allocations: 158.5 kB / 0.5898 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.2123, allocations: 105 kB / 0.5899 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.2123, allocations: 0 / 0.5899 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.2127, allocations: 173.1 kB / 0.5901 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.2127, allocations: 0 / 0.5901 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006785/0.2134, allocations: 379.7 kB / 0.5904 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/0.2135, allocations: 144.5 kB / 0.5906 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.2137, allocations: 274.7 kB / 0.5908 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.2138, allocations: 33.7 kB / 0.5909 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.2139, allocations: 156.1 kB / 0.591 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.2139, allocations: 43.45 kB / 0.591 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-05/0.214, allocations: 41.7 kB / 0.5911 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.2142, allocations: 338.8 kB / 0.5914 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.2143, allocations: 87.95 kB / 0.5915 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.2145, allocations: 129.1 kB / 0.5916 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.2149, allocations: 238.8 kB / 0.5918 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.2149, allocations: 0 / 0.5918 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004923/0.2154, allocations: 340.5 kB / 0.5922 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.098e-05/0.2154, allocations: 33.7 kB / 0.5922 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.2155, allocations: 4 kB / 0.5922 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.2155, allocations: 7.922 kB / 0.5922 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.2156, allocations: 20 kB / 0.5922 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.2156, allocations: 3.984 kB / 0.5922 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.2158, allocations: 31.86 kB / 0.5923 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.2158, allocations: 8 kB / 0.5923 GB, free: 11.87 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.0001738/0.216, allocations: 190.7 kB / 0.5925 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.92e-05/0.216, allocations: 27.62 kB / 0.5925 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.65e-05/0.2161, allocations: 33.83 kB / 0.5925 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2161, allocations: 0 / 0.5925 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2161, allocations: 0 / 0.5925 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.2161, allocations: 15.91 kB / 0.5925 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.2164, allocations: 285.5 kB / 0.5928 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2164, allocations: 0 / 0.5928 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.2165, allocations: 15.98 kB / 0.5928 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2165, allocations: 96 / 0.5928 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.2165, allocations: 11.92 kB / 0.5928 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2165, allocations: 0 / 0.5928 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.2165, allocations: 7.984 kB / 0.5928 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007099/0.2172, allocations: 477.2 kB / 0.5933 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-05/0.2173, allocations: 100.8 kB / 0.5934 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.343e-05/0.2174, allocations: 8 kB / 0.5934 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.2175, allocations: 11.98 kB / 0.5934 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.365e-05/0.2176, allocations: 19.97 kB / 0.5934 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.2176, allocations: 11.92 kB / 0.5934 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001842/0.2178, allocations: 202 kB / 0.5936 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2178, allocations: 4.062 kB / 0.5936 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002793/0.2181, allocations: 55.94 kB / 0.5937 GB, free: 10.32 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.0001954/0.2183, allocations: 135.1 kB / 0.5938 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004797/0.2188, allocations: 291.2 kB / 0.5941 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2188, allocations: 192 / 0.5941 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002328/0.219, allocations: 183.4 kB / 0.5943 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.2193, allocations: 32.55 kB / 0.5943 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.2204, allocations: 0.541 MB / 0.5948 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.2207, allocations: 0.7555 MB / 0.5956 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.058e-05/0.2208, allocations: 17.55 kB / 0.5956 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.502e-05/0.2209, allocations: 15.44 kB / 0.5956 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of SimCode: time 4.91e-07/0.2209, allocations: 4 kB / 0.5956 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of Templates: time 0.005886/0.2268, allocations: 2.519 MB / 0.5981 GB, free: 5.773 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)