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.0007529/0.0007529, allocations: 96.92 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008477/0.0008476, allocations: 202.5 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1777/0.1777, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002225/0.0002225, allocations: 8.375 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08707/0.0873, allocations: 63.56 MB / 483.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.003817/0.09116, allocations: 3.637 MB / 486.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.09326, allocations: 1.46 MB / 488.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002832/0.09357, allocations: 11.94 kB / 488.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005991/0.09418, allocations: 230.9 kB / 488.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002924/0.09448, allocations: 107.2 kB / 488.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003541/0.09484, allocations: 171.8 kB / 488.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005702/0.09542, allocations: 0.5959 MB / 489.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003435/0.09578, allocations: 243.4 kB / 489.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002651/0.09605, allocations: 183 kB / 489.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.09629, allocations: 214.8 kB / 489.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.401e-05/0.09635, allocations: 28 kB / 489.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.677e-05/0.09642, allocations: 24 kB / 489.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.088e-05/0.0965, allocations: 95.48 kB / 490 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.09671, allocations: 268.2 kB / 490.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004877/0.0972, allocations: 0.646 MB / 490.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.09721, allocations: 0 / 490.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09722, allocations: 0 / 490.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.09724, allocations: 0 / 490.9 MB, free: 12.22 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.001099/0.09834, allocations: 0.7466 MB / 491.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.09838, allocations: 8.875 kB / 491.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.73e-05/0.09848, allocations: 68.19 kB / 491.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004656/0.09896, allocations: 403.6 kB / 492.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.09899, allocations: 29.38 kB / 492.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.777e-05/0.09907, allocations: 48.38 kB / 492.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007755/0.09985, allocations: 471.2 kB / 492.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.09988, allocations: 7.906 kB / 492.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.885e-05/0.09993, allocations: 16 kB / 492.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.09994, allocations: 12 kB / 492.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000619/0.1006, allocations: 319.8 kB / 493 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.1028, allocations: 1.689 MB / 494.7 MB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008731/0.1037, allocations: 434.2 kB / 495.2 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002258/0.1039, allocations: 128 kB / 495.3 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.104, allocations: 4 kB / 495.3 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.104, allocations: 34.66 kB / 495.3 MB, free: 7.625 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.104, allocations: 3.938 kB / 495.3 MB, free: 7.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.00158/0.1056, allocations: 0.92 MB / 496.2 MB, free: 6.625 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.1056, allocations: 55.41 kB / 496.3 MB, free: 6.559 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004175/0.1061, allocations: 397.7 kB / 496.7 MB, free: 6.164 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.1061, allocations: 25.7 kB / 496.7 MB, free: 6.133 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.1062, allocations: 275.8 kB / 497 MB, free: 5.859 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.808e-05/0.1063, allocations: 90.66 kB / 497.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.435e-05/0.1064, allocations: 37.7 kB / 497.1 MB, free: 5.727 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1065, allocations: 350.8 kB / 497.4 MB, free: 5.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.1067, allocations: 99.89 kB / 497.5 MB, free: 5.277 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002361/0.1069, allocations: 158.8 kB / 497.7 MB, free: 5.098 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004399/0.1074, allocations: 263.7 kB / 498 MB, free: 4.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1074, allocations: 4 kB / 498 MB, free: 4.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006294/0.108, allocations: 362 kB / 498.3 MB, free: 4.449 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.943e-05/0.1081, allocations: 147 kB / 498.5 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.1081, allocations: 4 kB / 498.5 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001134/0.1083, allocations: 24.84 kB / 498.5 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002899/0.1086, allocations: 75.89 kB / 498.6 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008931/0.1095, allocations: 1.281 MB / 499.8 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.1097, allocations: 19.98 kB / 499.9 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.1097, allocations: 12.09 kB / 499.9 MB, free: 2.727 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.981e-06/0.1097, allocations: 8 kB / 499.9 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000474/0.1102, allocations: 264.6 kB / 0.4884 GB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.1102, allocations: 0 / 0.4884 GB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.993e-05/0.1103, allocations: 25.08 kB / 0.4884 GB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.1105, allocations: 67.91 kB / 0.4885 GB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008226/0.1114, allocations: 1.292 MB / 0.4898 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.1116, allocations: 8 kB / 0.4898 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.1116, allocations: 11.94 kB / 0.4898 GB, free: 0.9219 MB / 366.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.0001948/0.1118, allocations: 256 kB / 0.49 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.041e-05/0.1118, allocations: 35.53 kB / 0.4901 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.828e-05/0.1119, allocations: 43.52 kB / 0.4901 GB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.1119, allocations: 8.094 kB / 0.4901 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.112, allocations: 3.938 kB / 0.4901 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.112, allocations: 3.938 kB / 0.4901 GB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.1131, allocations: 0.8608 MB / 0.491 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1132, allocations: 0 / 0.491 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.1134, allocations: 55.91 kB / 0.491 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.487e-05/0.1135, allocations: 20.92 kB / 0.491 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.1135, allocations: 8 kB / 0.491 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008124/0.1144, allocations: 1.284 MB / 0.4923 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1144, allocations: 0 / 0.4923 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007677/0.1152, allocations: 0.5087 MB / 0.4928 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.928e-05/0.1153, allocations: 116.8 kB / 0.4929 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.016e-05/0.1153, allocations: 4.125 kB / 0.4929 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.1155, allocations: 27.92 kB / 0.4929 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.1156, allocations: 15.98 kB / 0.4929 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.1156, allocations: 8 kB / 0.493 GB, free: 13.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003023/0.1159, allocations: 283.2 kB / 0.4932 GB, free: 13.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1159, allocations: 0 / 0.4932 GB, free: 13.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005157/0.1164, allocations: 140 kB / 0.4934 GB, free: 13.01 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 9.134e-05/0.1165, allocations: 107.7 kB / 0.4935 GB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009587/0.1175, allocations: 0.6112 MB / 0.4941 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1175, allocations: 0 / 0.4941 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003267/0.1179, allocations: 227.5 kB / 0.4943 GB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000552/0.1184, allocations: 75.38 kB / 0.4943 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.1201, allocations: 1.328 MB / 0.4956 GB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1204, allocations: 0.8308 MB / 0.4965 GB, free: 9.723 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001625/0.1206, allocations: 43.25 kB / 0.4965 GB, free: 9.684 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.606e-05/0.1207, allocations: 27.44 kB / 0.4965 GB, free: 9.656 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1207, allocations: 4 kB / 0.4965 GB, free: 9.652 MB / 382.1 MB Notification: Performance of Templates: time 0.007531/0.1282, allocations: 3.83 MB / 0.5003 GB, free: 5.848 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 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)