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.005821/0.005821, allocations: 101.1 kB / 15.88 MB, free: 6.332 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.001347/0.001347, allocations: 195.9 kB / 16.79 MB, free: 6.258 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.363/1.363, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9322/0.9322, allocations: 135.1 MB / 425.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 60.91 kB / 0.5053 GB, free: 5.73 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.215, allocations: 80.93 MB / 0.5843 GB, free: 4.965 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003469/0.2186, allocations: 1.999 MB / 0.5863 GB, free: 2.941 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.22, allocations: 0.713 MB / 0.587 GB, free: 2.227 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.2201, allocations: 7.875 kB / 0.587 GB, free: 2.219 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.2204, allocations: 75.77 kB / 0.5871 GB, free: 2.145 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.2206, allocations: 91.67 kB / 0.5872 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.2211, allocations: 147.2 kB / 0.5873 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.2214, allocations: 247.4 kB / 0.5875 GB, free: 1.672 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.2216, allocations: 70.11 kB / 0.5876 GB, free: 1.605 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.2218, allocations: 99.66 kB / 0.5877 GB, free: 1.508 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.222, allocations: 143.5 kB / 0.5878 GB, free: 1.367 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.222, allocations: 8 kB / 0.5878 GB, free: 1.359 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.2222, allocations: 87.86 kB / 0.5879 GB, free: 1.273 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.312e-05/0.2223, allocations: 43.84 kB / 0.588 GB, free: 1.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.2224, allocations: 95.33 kB / 0.5881 GB, free: 1.137 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002694/0.2227, allocations: 215.6 kB / 0.5883 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2227, allocations: 0 / 0.5883 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2227, allocations: 4 kB / 0.5883 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.2227, allocations: 0 / 0.5883 GB, free: 0.9219 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.0009517/0.2237, allocations: 0.5859 MB / 0.5888 GB, free: 288 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.2237, allocations: 8.031 kB / 0.5888 GB, free: 280 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.2238, allocations: 32.56 kB / 0.5889 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000488/0.2243, allocations: 306.7 kB / 0.5892 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.2244, allocations: 12.38 kB / 0.5892 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.167e-05/0.2244, allocations: 15.94 kB / 0.5892 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004075/0.2248, allocations: 223.1 kB / 0.5894 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.2248, allocations: 7.984 kB / 0.5894 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.2249, allocations: 4 kB / 0.5894 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.2249, allocations: 4 kB / 0.5894 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002575/0.2252, allocations: 132.3 kB / 0.5896 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009457/0.2261, allocations: 0.6808 MB / 0.5902 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.2265, allocations: 170.6 kB / 0.5904 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.2267, allocations: 96.83 kB / 0.5905 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.2267, allocations: 0 / 0.5905 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003766/0.2271, allocations: 173.1 kB / 0.5906 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.2271, allocations: 3.938 kB / 0.5906 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007321/0.2278, allocations: 377.3 kB / 0.591 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.893e-05/0.2279, allocations: 132.5 kB / 0.5911 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003326/0.2283, allocations: 278.7 kB / 0.5914 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.2283, allocations: 29.7 kB / 0.5914 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.2284, allocations: 160.1 kB / 0.5916 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.2285, allocations: 43.53 kB / 0.5916 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.875e-05/0.2286, allocations: 45.64 kB / 0.5917 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2287, allocations: 346.8 kB / 0.592 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.2289, allocations: 83.95 kB / 0.5921 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.2291, allocations: 133 kB / 0.5922 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.2295, allocations: 240.8 kB / 0.5924 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2295, allocations: 0 / 0.5924 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005255/0.2301, allocations: 339 kB / 0.5927 GB, free: 12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.662e-05/0.2301, allocations: 43.81 kB / 0.5928 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2301, allocations: 0 / 0.5928 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.2302, allocations: 96 / 0.5928 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.2303, allocations: 31.92 kB / 0.5928 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.2303, allocations: 0 / 0.5928 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.2304, allocations: 35.67 kB / 0.5929 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.2305, allocations: 4 kB / 0.5929 GB, free: 11.88 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.0001999/0.2307, allocations: 188.1 kB / 0.593 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.535e-05/0.2307, allocations: 23.72 kB / 0.5931 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.409e-05/0.2308, allocations: 37.83 kB / 0.5931 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2308, allocations: 0 / 0.5931 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.2308, allocations: 0 / 0.5931 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.2308, allocations: 3.938 kB / 0.5931 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.2311, allocations: 281.5 kB / 0.5934 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2311, allocations: 0 / 0.5934 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.2312, allocations: 19.92 kB / 0.5934 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.2313, allocations: 4 kB / 0.5934 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.2313, allocations: 4 kB / 0.5934 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2313, allocations: 0 / 0.5934 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2313, allocations: 4 kB / 0.5934 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007836/0.2321, allocations: 474.1 kB / 0.5939 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.493e-05/0.2322, allocations: 96.86 kB / 0.5939 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.695e-05/0.2322, allocations: 8 kB / 0.594 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.2324, allocations: 15.98 kB / 0.594 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.714e-05/0.2325, allocations: 19.95 kB / 0.594 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-05/0.2325, allocations: 16 kB / 0.594 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001937/0.2327, allocations: 201.9 kB / 0.5942 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.7e-07/0.2327, allocations: 0 / 0.5942 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003158/0.233, allocations: 55.94 kB / 0.5942 GB, free: 10.35 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.0002385/0.2333, allocations: 135.2 kB / 0.5944 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000476/0.2338, allocations: 295.4 kB / 0.5947 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2338, allocations: 0 / 0.5947 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002334/0.234, allocations: 187.3 kB / 0.5948 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.2344, allocations: 32.53 kB / 0.5949 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.2355, allocations: 0.5666 MB / 0.5954 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.2359, allocations: 0.7517 MB / 0.5962 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.127e-05/0.236, allocations: 19.44 kB / 0.5962 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.236, allocations: 0 / 0.5962 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of Templates: time 0.00566/0.2416, allocations: 2.995 MB / 0.5991 GB, free: 5.305 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)