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.001118/0.001118, 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.001185/0.001185, allocations: 192.3 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.442/1.442, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.057/1.057, allocations: 135.1 MB / 425.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.48 kB / 0.5049 GB, free: 5.652 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.208, allocations: 80.92 MB / 0.5839 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003438/0.2115, allocations: 1.997 MB / 0.5858 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.2127, allocations: 0.6936 MB / 0.5865 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.2128, allocations: 7.938 kB / 0.5865 GB, free: 2.172 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002341/0.213, allocations: 75.7 kB / 0.5866 GB, free: 2.098 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.2132, allocations: 83.75 kB / 0.5867 GB, free: 2.016 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005594/0.2138, allocations: 166.8 kB / 0.5868 GB, free: 1.855 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003245/0.2141, allocations: 263.5 kB / 0.5871 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.2143, allocations: 78.08 kB / 0.5872 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.2144, allocations: 115.6 kB / 0.5873 GB, free: 1.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/0.2147, allocations: 151.5 kB / 0.5874 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.702e-05/0.2147, allocations: 23.94 kB / 0.5874 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001379/0.2149, allocations: 91.94 kB / 0.5875 GB, free: 1.148 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.388e-05/0.215, allocations: 63.77 kB / 0.5876 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.2151, allocations: 103.3 kB / 0.5877 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003591/0.2154, allocations: 299.1 kB / 0.588 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2154, allocations: 0 / 0.588 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2155, allocations: 0 / 0.588 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.2155, allocations: 0 / 0.588 GB, free: 0.6914 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.0009818/0.2165, allocations: 0.5858 MB / 0.5885 GB, free: 52 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.2165, allocations: 8.031 kB / 0.5885 GB, free: 44 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.242e-05/0.2166, allocations: 36.56 kB / 0.5886 GB, free: 8 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005378/0.2171, allocations: 298.8 kB / 0.5889 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.2172, allocations: 12.38 kB / 0.5889 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.259e-05/0.2172, allocations: 15.94 kB / 0.5889 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004187/0.2176, allocations: 227.9 kB / 0.5891 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.2177, allocations: 0 / 0.5891 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.2177, allocations: 8 kB / 0.5891 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2177, allocations: 0 / 0.5891 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.218, allocations: 132.3 kB / 0.5892 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009144/0.2189, allocations: 0.6886 MB / 0.5899 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004462/0.2193, allocations: 170.5 kB / 0.5901 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.2195, allocations: 101 kB / 0.5902 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.2195, allocations: 0 / 0.5902 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003749/0.2199, allocations: 169 kB / 0.5903 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.2199, allocations: 0 / 0.5903 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.00077/0.2207, allocations: 382 kB / 0.5907 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.487e-05/0.2208, allocations: 132.5 kB / 0.5908 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002855/0.2211, allocations: 282.7 kB / 0.5911 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.2211, allocations: 25.7 kB / 0.5911 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.2213, allocations: 164.1 kB / 0.5913 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.093e-05/0.2213, allocations: 35.45 kB / 0.5913 GB, free: 13 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.034e-05/0.2214, allocations: 45.7 kB / 0.5914 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2216, allocations: 346.7 kB / 0.5917 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.2217, allocations: 83.95 kB / 0.5918 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.2219, allocations: 135.2 kB / 0.5919 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003337/0.2223, allocations: 240.8 kB / 0.5921 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.2223, allocations: 4 kB / 0.5921 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005789/0.2229, allocations: 334.9 kB / 0.5924 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.213e-05/0.2229, allocations: 37.69 kB / 0.5925 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.2229, allocations: 4.094 kB / 0.5925 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.223, allocations: 4 kB / 0.5925 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.2231, allocations: 23.92 kB / 0.5925 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.2231, allocations: 4 kB / 0.5925 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.2232, allocations: 31.67 kB / 0.5925 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.2233, allocations: 8 kB / 0.5926 GB, free: 11.66 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.0001827/0.2235, allocations: 195 kB / 0.5927 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.2235, allocations: 27.72 kB / 0.5928 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.696e-05/0.2236, allocations: 25.84 kB / 0.5928 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2236, allocations: 0 / 0.5928 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2236, allocations: 3.984 kB / 0.5928 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.2236, allocations: 7.938 kB / 0.5928 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.2239, allocations: 277.5 kB / 0.5931 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.2239, allocations: 3.984 kB / 0.5931 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.224, allocations: 15.94 kB / 0.5931 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.224, allocations: 0 / 0.5931 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.224, allocations: 11.98 kB / 0.5931 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.224, allocations: 4 kB / 0.5931 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.224, allocations: 3.984 kB / 0.5931 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007094/0.2248, allocations: 466.2 kB / 0.5936 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.804e-05/0.2248, allocations: 96.84 kB / 0.5936 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.27e-05/0.2249, allocations: 11.94 kB / 0.5937 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.225, allocations: 20.05 kB / 0.5937 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.33e-05/0.2251, allocations: 28.09 kB / 0.5937 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.2251, allocations: 7.938 kB / 0.5937 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001923/0.2253, allocations: 209.9 kB / 0.5939 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2253, allocations: 0 / 0.5939 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002696/0.2256, allocations: 60.06 kB / 0.594 GB, free: 10.1 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.0001956/0.2258, allocations: 131.2 kB / 0.5941 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005349/0.2263, allocations: 291.2 kB / 0.5944 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.2264, allocations: 4 kB / 0.5944 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.2266, allocations: 183.3 kB / 0.5945 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.2269, allocations: 32.55 kB / 0.5946 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.228, allocations: 0.5401 MB / 0.5951 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.2283, allocations: 0.7553 MB / 0.5958 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.701e-05/0.2284, allocations: 17.55 kB / 0.5959 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.679e-05/0.2285, allocations: 19.44 kB / 0.5959 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.2285, allocations: 0 / 0.5959 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of Templates: time 0.006109/0.2346, allocations: 2.661 MB / 0.5985 GB, free: 5.422 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)