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.001579/0.00158, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001888/0.001888, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.393/1.393, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.066/1.066, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.92 kB / 0.5053 GB, free: 5.328 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2381, allocations: 80.93 MB / 0.5844 GB, free: 4.562 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003771/0.2419, allocations: 1.944 MB / 0.5863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.2435, allocations: 0.7052 MB / 0.5869 GB, free: 1.887 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.2437, allocations: 4 kB / 0.587 GB, free: 1.883 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003292/0.244, allocations: 91.52 kB / 0.587 GB, free: 1.793 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.2442, allocations: 91.56 kB / 0.5871 GB, free: 1.703 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007206/0.2449, allocations: 186.8 kB / 0.5873 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003774/0.2453, allocations: 263.5 kB / 0.5876 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002095/0.2455, allocations: 70.09 kB / 0.5876 GB, free: 1.199 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001783/0.2457, allocations: 115.7 kB / 0.5877 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/0.246, allocations: 151.5 kB / 0.5879 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.367e-05/0.246, allocations: 20 kB / 0.5879 GB, free: 0.918 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.2462, allocations: 95.86 kB / 0.588 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.2463, allocations: 55.84 kB / 0.588 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.2464, allocations: 107.3 kB / 0.5881 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003918/0.2468, allocations: 299.1 kB / 0.5884 GB, free: 380 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.2468, allocations: 0 / 0.5884 GB, free: 380 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2469, allocations: 3.938 kB / 0.5884 GB, free: 376 kB / 494.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.2469, allocations: 4 kB / 0.5884 GB, free: 372 kB / 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.0008947/0.2478, allocations: 0.5819 MB / 0.589 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.2478, allocations: 8.031 kB / 0.589 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.498e-05/0.2479, allocations: 36.56 kB / 0.589 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.2484, allocations: 298.8 kB / 0.5893 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.2484, allocations: 12.38 kB / 0.5893 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.765e-05/0.2484, allocations: 15.94 kB / 0.5894 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003818/0.2488, allocations: 223.2 kB / 0.5896 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2488, allocations: 3.938 kB / 0.5896 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.2489, allocations: 8 kB / 0.5896 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.2489, allocations: 3.984 kB / 0.5896 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002377/0.2491, allocations: 128.4 kB / 0.5897 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008499/0.25, allocations: 0.6885 MB / 0.5904 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003721/0.2504, allocations: 166.5 kB / 0.5905 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.2505, allocations: 96.95 kB / 0.5906 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.2506, allocations: 0 / 0.5906 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003511/0.2509, allocations: 177.1 kB / 0.5908 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.2509, allocations: 0 / 0.5908 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006953/0.2516, allocations: 377.8 kB / 0.5912 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.684e-05/0.2517, allocations: 132.5 kB / 0.5913 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.252, allocations: 278.7 kB / 0.5916 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.2521, allocations: 29.7 kB / 0.5916 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.2522, allocations: 164.1 kB / 0.5917 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/0.2522, allocations: 39.45 kB / 0.5918 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.508e-05/0.2523, allocations: 41.8 kB / 0.5918 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.2524, allocations: 346.7 kB / 0.5921 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.2526, allocations: 87.89 kB / 0.5922 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.2528, allocations: 143 kB / 0.5924 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.2531, allocations: 240.8 kB / 0.5926 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2531, allocations: 0 / 0.5926 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004712/0.2536, allocations: 335 kB / 0.5929 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.676e-05/0.2537, allocations: 37.69 kB / 0.593 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.2537, allocations: 0 / 0.593 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.2537, allocations: 7.938 kB / 0.593 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.2538, allocations: 19.98 kB / 0.593 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/0.2539, allocations: 4 kB / 0.593 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.254, allocations: 31.67 kB / 0.593 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.254, allocations: 8 kB / 0.593 GB, free: 11.33 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.0002161/0.2542, allocations: 195.5 kB / 0.5932 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.35e-05/0.2543, allocations: 27.72 kB / 0.5932 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.755e-05/0.2544, allocations: 29.83 kB / 0.5933 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.2544, allocations: 0 / 0.5933 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2544, allocations: 0 / 0.5933 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.2544, allocations: 7.938 kB / 0.5933 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002959/0.2547, allocations: 281.5 kB / 0.5935 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2547, allocations: 0 / 0.5935 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.2548, allocations: 15.98 kB / 0.5936 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2548, allocations: 4 kB / 0.5936 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.2549, allocations: 8 kB / 0.5936 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2549, allocations: 0 / 0.5936 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2549, allocations: 0 / 0.5936 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007539/0.2556, allocations: 474.1 kB / 0.594 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.216e-05/0.2557, allocations: 92.86 kB / 0.5941 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.361e-05/0.2558, allocations: 12.06 kB / 0.5941 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.2559, allocations: 11.98 kB / 0.5941 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.256, allocations: 31.95 kB / 0.5942 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.256, allocations: 11.88 kB / 0.5942 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002018/0.2562, allocations: 202 kB / 0.5944 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2562, allocations: 0 / 0.5944 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002929/0.2565, allocations: 55.94 kB / 0.5944 GB, free: 9.793 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.0002607/0.2568, allocations: 139.3 kB / 0.5946 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005134/0.2573, allocations: 291.2 kB / 0.5948 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2573, allocations: 4 kB / 0.5948 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002477/0.2576, allocations: 183.3 kB / 0.595 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.2579, allocations: 40.73 kB / 0.595 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009789/0.2589, allocations: 484.8 kB / 0.5955 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.2592, allocations: 0.7475 MB / 0.5962 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.331e-05/0.2593, allocations: 25.53 kB / 0.5963 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.087e-05/0.2594, allocations: 19.42 kB / 0.5963 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of SimCode: time 3.81e-07/0.2594, allocations: 0 / 0.5963 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of Templates: time 0.006528/0.2659, allocations: 2.82 MB / 0.599 GB, free: 5.004 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)