Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008123/0.008123, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001579/0.001579, allocations: 197.2 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.345/0.345, allocations: 38 MB / 307.9 MB, free: 10.03 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 63.91 kB / 433 MB, free: 5.445 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3921, allocations: 56.47 MB / 489.4 MB, free: 19.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003274/0.3955, allocations: 1.903 MB / 491.3 MB, free: 18.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009468/0.3964, allocations: 0.5358 MB / 491.9 MB, free: 18.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.3966, allocations: 3.594 kB / 491.9 MB, free: 18.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.3967, allocations: 22.41 kB / 491.9 MB, free: 18.24 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.3969, allocations: 46.33 kB / 491.9 MB, free: 18.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000212/0.3971, allocations: 33.36 kB / 492 MB, free: 18.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.3973, allocations: 148.7 kB / 492.1 MB, free: 18.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.3975, allocations: 60.66 kB / 492.2 MB, free: 18.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.3976, allocations: 71.8 kB / 492.3 MB, free: 18.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.3978, allocations: 67.94 kB / 492.3 MB, free: 18.01 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/0.3978, allocations: 11.66 kB / 492.3 MB, free: 18.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.401e-05/0.3979, allocations: 11.16 kB / 492.3 MB, free: 18.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.177e-05/0.3979, allocations: 25.19 kB / 492.4 MB, free: 18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.165e-05/0.398, allocations: 65.94 kB / 492.4 MB, free: 17.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.3982, allocations: 151.4 kB / 492.6 MB, free: 17.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3983, allocations: 0 / 492.6 MB, free: 17.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3983, allocations: 0 / 492.6 MB, free: 17.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3983, allocations: 1.094 kB / 492.6 MB, free: 17.9 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005811/0.3989, allocations: 433.7 kB / 493 MB, free: 17.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3989, allocations: 17.42 kB / 493 MB, free: 17.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.82e-05/0.399, allocations: 15.59 kB / 493 MB, free: 17.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.3993, allocations: 202.4 kB / 493.2 MB, free: 17.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.3993, allocations: 9.906 kB / 493.2 MB, free: 17.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.126e-05/0.3993, allocations: 13.42 kB / 493.3 MB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.3996, allocations: 133.4 kB / 493.4 MB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.3996, allocations: 4.609 kB / 493.4 MB, free: 17.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.3997, allocations: 9.281 kB / 493.4 MB, free: 17.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.3997, allocations: 3.938 kB / 493.4 MB, free: 17.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002065/0.3999, allocations: 76.81 kB / 493.5 MB, free: 17.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007668/0.4007, allocations: 462 kB / 493.9 MB, free: 16.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.401, allocations: 126.9 kB / 494.1 MB, free: 16.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.4012, allocations: 55.86 kB / 494.1 MB, free: 16.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.4012, allocations: 9.969 kB / 494.1 MB, free: 16.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.4012, allocations: 40.67 kB / 494.2 MB, free: 16.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.4012, allocations: 0 / 494.2 MB, free: 16.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001635/0.4029, allocations: 0.8046 MB / 495 MB, free: 16.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/0.403, allocations: 54.45 kB / 495 MB, free: 15.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.4031, allocations: 144.3 kB / 495.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.4032, allocations: 26.8 kB / 495.2 MB, free: 15.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.4033, allocations: 114.5 kB / 495.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.22e-05/0.4034, allocations: 67.73 kB / 495.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.37e-05/0.4034, allocations: 36.25 kB / 495.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.053e-05/0.4035, allocations: 322.4 kB / 495.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.4036, allocations: 45.33 kB / 495.8 MB, free: 15.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/0.4038, allocations: 78.08 kB / 495.8 MB, free: 15.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002567/0.404, allocations: 141.7 kB / 496 MB, free: 15.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.404, allocations: 1.625 kB / 496 MB, free: 15.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004856/0.4045, allocations: 203.4 kB / 496.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.4046, allocations: 9.188 kB / 496.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4046, allocations: 1.094 kB / 496.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002269/0.4048, allocations: 44.39 kB / 496.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.405, allocations: 40.69 kB / 496.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.4064, allocations: 1.734 MB / 498 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.66e-05/0.4064, allocations: 4.859 kB / 498 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.4065, allocations: 8.5 kB / 498 MB, free: 13.35 MB / 382.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: 0 () * 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: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.766e-05/0.4066, allocations: 125.6 kB / 498.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.4066, allocations: 14.58 kB / 498.2 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.977e-05/0.4067, allocations: 20.61 kB / 498.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.4067, allocations: 6.156 kB / 498.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.4067, allocations: 1.125 kB / 498.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4067, allocations: 2.578 kB / 498.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008024/0.4075, allocations: 0.5452 MB / 498.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.4075, allocations: 5.062 kB / 498.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.4077, allocations: 32.27 kB / 498.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.4078, allocations: 34.89 kB / 498.8 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.4079, allocations: 1.781 kB / 498.8 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.4089, allocations: 1.487 MB / 0.4886 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4089, allocations: 1.25 kB / 0.4886 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005077/0.4094, allocations: 350.8 kB / 0.4889 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-05/0.4095, allocations: 90.09 kB / 0.489 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/0.4095, allocations: 9.906 kB / 0.489 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.4096, allocations: 3.516 kB / 0.489 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.4097, allocations: 19.56 kB / 0.489 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.4097, allocations: 3.625 kB / 0.489 GB, free: 10.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.096e-05/0.4098, allocations: 113.5 kB / 0.4891 GB, free: 10.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4098, allocations: 8 kB / 0.4891 GB, free: 10.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.4102, allocations: 42.19 kB / 0.4892 GB, free: 10.83 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001235/0.4103, allocations: 102.2 kB / 0.4893 GB, free: 10.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006005/0.4109, allocations: 263.6 kB / 0.4895 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.4109, allocations: 4.062 kB / 0.4895 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002664/0.4112, allocations: 189 kB / 0.4897 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.4116, allocations: 22.22 kB / 0.4897 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008866/0.4125, allocations: 451 kB / 0.4902 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.4128, allocations: 0.717 MB / 0.4909 GB, free: 9.414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.478e-05/0.4128, allocations: 10.27 kB / 0.4909 GB, free: 9.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.732e-05/0.4129, allocations: 16.39 kB / 0.4909 GB, free: 9.402 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4129, allocations: 4 kB / 0.4909 GB, free: 9.398 MB / 382.1 MB Notification: Performance of Templates: time 0.006598/0.4195, allocations: 1.626 MB / 0.4925 GB, free: 9.246 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1)