Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001432/0.001431, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2219/0.2219, allocations: 46.12 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 74.09 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1234, allocations: 62.44 MB / 481.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005238/0.1287, allocations: 4.031 MB / 485.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002236/0.131, allocations: 1.491 MB / 487 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000268/0.1313, allocations: 11.94 kB / 487 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006158/0.1319, allocations: 262.3 kB / 487.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.1322, allocations: 142.8 kB / 487.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000373/0.1325, allocations: 187.7 kB / 487.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005772/0.1331, allocations: 0.6349 MB / 488.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003711/0.1335, allocations: 268.2 kB / 488.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002984/0.1338, allocations: 239 kB / 488.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002764/0.1341, allocations: 266.7 kB / 488.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.191e-05/0.1342, allocations: 60 kB / 489 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.094e-05/0.1343, allocations: 60 kB / 489.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.1344, allocations: 131.5 kB / 489.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002879/0.1347, allocations: 294.5 kB / 489.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007434/0.1355, allocations: 0.6929 MB / 490.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.1355, allocations: 4 kB / 490.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.1355, allocations: 0 / 490.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.1355, allocations: 0 / 490.2 MB, free: 11.78 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001391/0.1369, allocations: 0.8455 MB / 491 MB, free: 10.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.137, allocations: 8.031 kB / 491 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.38e-05/0.1371, allocations: 60.19 kB / 491.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000618/0.1377, allocations: 415.6 kB / 491.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.1377, allocations: 33.38 kB / 491.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.894e-05/0.1378, allocations: 52.28 kB / 491.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007447/0.1385, allocations: 459.2 kB / 492 MB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.1386, allocations: 8 kB / 492 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.1386, allocations: 20 kB / 492.1 MB, free: 9.801 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.1386, allocations: 15.98 kB / 492.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005807/0.1392, allocations: 299.8 kB / 492.4 MB, free: 9.492 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/0.1415, allocations: 1.653 MB / 494 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008066/0.1424, allocations: 387.5 kB / 494.4 MB, free: 7.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002149/0.1426, allocations: 112.8 kB / 494.5 MB, free: 7.227 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.1426, allocations: 4 kB / 494.5 MB, free: 7.223 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.1427, allocations: 50.48 kB / 494.6 MB, free: 7.164 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.944e-06/0.1427, allocations: 0 / 494.6 MB, free: 7.164 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001634/0.1443, allocations: 0.8839 MB / 495.4 MB, free: 6.207 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.1444, allocations: 55.41 kB / 495.5 MB, free: 6.141 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004403/0.1448, allocations: 393.7 kB / 495.9 MB, free: 5.754 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1449, allocations: 29.7 kB / 495.9 MB, free: 5.719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.1451, allocations: 283.8 kB / 496.2 MB, free: 5.434 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.019e-05/0.1451, allocations: 86.75 kB / 496.3 MB, free: 5.348 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.108e-05/0.1452, allocations: 61.59 kB / 496.3 MB, free: 5.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1454, allocations: 346.8 kB / 496.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.1456, allocations: 96.81 kB / 496.8 MB, free: 4.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.1458, allocations: 158.5 kB / 496.9 MB, free: 4.656 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004085/0.1462, allocations: 254.8 kB / 497.2 MB, free: 4.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1463, allocations: 4 kB / 497.2 MB, free: 4.379 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005994/0.1469, allocations: 349.8 kB / 497.5 MB, free: 4.027 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.1469, allocations: 11.94 kB / 497.5 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1469, allocations: 3.984 kB / 497.5 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001524/0.1471, allocations: 24.84 kB / 497.6 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002871/0.1474, allocations: 71.84 kB / 497.6 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.1485, allocations: 1.384 MB / 499 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.1487, allocations: 12.03 kB / 499 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.1487, allocations: 15.92 kB / 499 MB, free: 2.363 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002907/0.149, allocations: 212 kB / 499.2 MB, free: 2.152 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001884/0.1492, allocations: 144.7 kB / 499.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000338/0.1495, allocations: 247.9 kB / 499.6 MB, free: 1.715 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.693e-06/0.1495, allocations: 0 / 499.6 MB, free: 1.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005108/0.1501, allocations: 321.8 kB / 499.9 MB, free: 1.391 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.747e-06/0.1501, allocations: 4 kB / 499.9 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.1501, allocations: 4.25 kB / 499.9 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.498e-05/0.1502, allocations: 28.84 kB / 500 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002401/0.1504, allocations: 67.91 kB / 0.4883 GB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009777/0.1514, allocations: 1.387 MB / 0.4897 GB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.1516, allocations: 8 kB / 0.4897 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.1516, allocations: 16 kB / 0.4897 GB, free: 15.74 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.1518, allocations: 204.4 kB / 0.4899 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.679e-05/0.1518, allocations: 35.53 kB / 0.4899 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.608e-05/0.1519, allocations: 43.52 kB / 0.49 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.1519, allocations: 4.078 kB / 0.49 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1519, allocations: 7.938 kB / 0.49 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.1519, allocations: 3.984 kB / 0.49 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.1533, allocations: 0.8363 MB / 0.4908 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1533, allocations: 0 / 0.4908 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002562/0.1535, allocations: 55.91 kB / 0.4909 GB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.751e-05/0.1536, allocations: 20.84 kB / 0.4909 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.1537, allocations: 7.938 kB / 0.4909 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009279/0.1546, allocations: 1.375 MB / 0.4922 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1546, allocations: 4.156 kB / 0.4922 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007115/0.1553, allocations: 485.6 kB / 0.4927 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.388e-05/0.1554, allocations: 120.7 kB / 0.4928 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/0.1555, allocations: 11.98 kB / 0.4928 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.1557, allocations: 8.125 kB / 0.4928 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.808e-05/0.1557, allocations: 23.91 kB / 0.4929 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.1558, allocations: 12 kB / 0.4929 GB, free: 12.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003453/0.1561, allocations: 283.2 kB / 0.4931 GB, free: 11.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1561, allocations: 3.938 kB / 0.4931 GB, free: 11.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005494/0.1567, allocations: 140 kB / 0.4933 GB, free: 11.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.y) * 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 (24): * Single equations (assignments): 23 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001126/0.1568, allocations: 107.2 kB / 0.4934 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009814/0.1578, allocations: 0.599 MB / 0.494 GB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1578, allocations: 0 / 0.494 GB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003113/0.1581, allocations: 224.2 kB / 0.4942 GB, free: 10.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005013/0.1586, allocations: 76.58 kB / 0.4942 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.1603, allocations: 1.025 MB / 0.4952 GB, free: 9.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.1607, allocations: 0.8424 MB / 0.4961 GB, free: 8.859 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.1608, allocations: 47.27 kB / 0.4961 GB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.549e-05/0.1609, allocations: 31.38 kB / 0.4961 GB, free: 8.777 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1609, allocations: 0 / 0.4961 GB, free: 8.777 MB / 382.1 MB Notification: Performance of Templates: time 0.008664/0.1696, allocations: 4.063 MB / 0.5001 GB, free: 4.738 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)