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.001159/0.001159, allocations: 107.4 kB / 15.99 MB, free: 6.348 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.001258/0.001258, allocations: 200 kB / 16.91 MB, free: 6.188 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.545/1.545, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8412/0.8412, allocations: 135.1 MB / 425.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 71.84 kB / 0.5055 GB, free: 8.734 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4539/0.4556, allocations: 80.91 MB / 0.5845 GB, free: 25.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003459/0.4591, allocations: 1.997 MB / 0.5865 GB, free: 23.72 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00123/0.4604, allocations: 0.705 MB / 0.5872 GB, free: 23.16 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.4605, allocations: 7.406 kB / 0.5872 GB, free: 23.16 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002814/0.4609, allocations: 70.11 kB / 0.5872 GB, free: 23.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.461, allocations: 87.81 kB / 0.5873 GB, free: 23.08 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006395/0.4617, allocations: 166.3 kB / 0.5875 GB, free: 22.96 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003359/0.462, allocations: 262.9 kB / 0.5877 GB, free: 22.82 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.4622, allocations: 66.08 kB / 0.5878 GB, free: 22.79 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.4623, allocations: 115.7 kB / 0.5879 GB, free: 22.72 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.4626, allocations: 149.7 kB / 0.588 GB, free: 22.64 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.433e-05/0.4626, allocations: 24.69 kB / 0.5881 GB, free: 22.63 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.4628, allocations: 93.02 kB / 0.5881 GB, free: 22.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.518e-05/0.4629, allocations: 64.58 kB / 0.5882 GB, free: 22.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.688e-05/0.463, allocations: 105.3 kB / 0.5883 GB, free: 22.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000323/0.4633, allocations: 226.5 kB / 0.5885 GB, free: 22.31 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.4633, allocations: 2.656 kB / 0.5885 GB, free: 22.31 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4633, allocations: 0 / 0.5885 GB, free: 22.31 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.4633, allocations: 3.938 kB / 0.5885 GB, free: 22.3 MB / 446.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.0008208/0.4642, allocations: 0.5785 MB / 0.5891 GB, free: 21.76 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.4642, allocations: 10.48 kB / 0.5891 GB, free: 21.76 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.063e-05/0.4643, allocations: 27.78 kB / 0.5891 GB, free: 21.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.4647, allocations: 309.8 kB / 0.5894 GB, free: 21.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.4648, allocations: 11.16 kB / 0.5894 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.19e-05/0.4648, allocations: 17.81 kB / 0.5895 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003969/0.4652, allocations: 223 kB / 0.5897 GB, free: 21.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.4652, allocations: 1.281 kB / 0.5897 GB, free: 21.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.4653, allocations: 6.812 kB / 0.5897 GB, free: 21.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.4653, allocations: 7.938 kB / 0.5897 GB, free: 21.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.4655, allocations: 131.4 kB / 0.5898 GB, free: 21.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007185/0.4662, allocations: 0.6779 MB / 0.5905 GB, free: 20.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/0.4665, allocations: 168.7 kB / 0.5906 GB, free: 20.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.4667, allocations: 100.1 kB / 0.5907 GB, free: 20.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.4667, allocations: 1.062 kB / 0.5907 GB, free: 20.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003252/0.467, allocations: 172 kB / 0.5909 GB, free: 20.04 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.4671, allocations: 0 / 0.5909 GB, free: 20.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005798/0.4676, allocations: 382.1 kB / 0.5913 GB, free: 19.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.4677, allocations: 132.5 kB / 0.5914 GB, free: 19.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.4679, allocations: 279.3 kB / 0.5917 GB, free: 19.22 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.4679, allocations: 30.48 kB / 0.5917 GB, free: 19.19 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.703e-05/0.468, allocations: 164.2 kB / 0.5918 GB, free: 19.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.4681, allocations: 37.2 kB / 0.5919 GB, free: 18.99 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-05/0.4681, allocations: 41.7 kB / 0.5919 GB, free: 18.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.834e-05/0.4682, allocations: 342.8 kB / 0.5922 GB, free: 18.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.4683, allocations: 85.23 kB / 0.5923 GB, free: 18.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.4685, allocations: 134.4 kB / 0.5924 GB, free: 18.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.4688, allocations: 241.6 kB / 0.5927 GB, free: 18.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4688, allocations: 0 / 0.5927 GB, free: 18.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003904/0.4692, allocations: 334.9 kB / 0.593 GB, free: 17.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.4692, allocations: 37.69 kB / 0.593 GB, free: 17.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.4692, allocations: 0.5 kB / 0.593 GB, free: 17.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.4693, allocations: 4.625 kB / 0.593 GB, free: 17.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.4694, allocations: 19.98 kB / 0.5931 GB, free: 17.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.4694, allocations: 5.656 kB / 0.5931 GB, free: 17.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.4695, allocations: 39.55 kB / 0.5931 GB, free: 17.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.4695, allocations: 11.98 kB / 0.5931 GB, free: 17.65 MB / 446.1 MB 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.0001359/0.4697, allocations: 191.3 kB / 0.5933 GB, free: 17.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.315e-05/0.4697, allocations: 31.66 kB / 0.5933 GB, free: 17.42 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.39e-05/0.4698, allocations: 29.83 kB / 0.5934 GB, free: 17.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4698, allocations: 0 / 0.5934 GB, free: 17.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4698, allocations: 4 kB / 0.5934 GB, free: 17.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.4698, allocations: 5.031 kB / 0.5934 GB, free: 17.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.47, allocations: 285.6 kB / 0.5936 GB, free: 17.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.47, allocations: 0 / 0.5936 GB, free: 17.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.592e-05/0.4701, allocations: 17.8 kB / 0.5937 GB, free: 17.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.4701, allocations: 3.938 kB / 0.5937 GB, free: 17.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.4702, allocations: 8 kB / 0.5937 GB, free: 17.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4702, allocations: 4 kB / 0.5937 GB, free: 17.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4702, allocations: 1.594 kB / 0.5937 GB, free: 17.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000563/0.4707, allocations: 471.3 kB / 0.5941 GB, free: 16.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.4708, allocations: 92.86 kB / 0.5942 GB, free: 16.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.251e-05/0.4708, allocations: 8.969 kB / 0.5942 GB, free: 16.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.522e-05/0.4709, allocations: 11.98 kB / 0.5942 GB, free: 16.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.941e-05/0.471, allocations: 32.48 kB / 0.5943 GB, free: 16.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.4711, allocations: 12.81 kB / 0.5943 GB, free: 16.37 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001339/0.4712, allocations: 202 kB / 0.5945 GB, free: 16.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4712, allocations: 2.344 kB / 0.5945 GB, free: 16.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002833/0.4715, allocations: 56 kB / 0.5945 GB, free: 16.12 MB / 446.1 MB 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.000174/0.4717, allocations: 131.2 kB / 0.5946 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004039/0.4721, allocations: 294.3 kB / 0.5949 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4721, allocations: 0 / 0.5949 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.4723, allocations: 183.3 kB / 0.5951 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.4726, allocations: 39.59 kB / 0.5951 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009246/0.4735, allocations: 0.5755 MB / 0.5957 GB, free: 14.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/0.4737, allocations: 0.7513 MB / 0.5964 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.96e-05/0.4738, allocations: 23.44 kB / 0.5965 GB, free: 14.07 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4738, allocations: 0 / 0.5965 GB, free: 14.07 MB / 446.1 MB Notification: Performance of Templates: time 0.004409/0.4782, allocations: 2.997 MB / 0.5994 GB, free: 11.1 MB / 446.1 MB 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)