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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00148/0.00148, allocations: 107.7 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001733/0.001733, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2024/0.2024, allocations: 46.11 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 67.3 kB / 416.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1071, allocations: 62.45 MB / 479.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.004818/0.1119, allocations: 4.046 MB / 483.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.1141, allocations: 1.464 MB / 484.9 MB, free: 64 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002251/0.1143, allocations: 11.94 kB / 484.9 MB, free: 52 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005943/0.1149, allocations: 238.9 kB / 485.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002166/0.1152, allocations: 103.2 kB / 485.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003134/0.1155, allocations: 171.8 kB / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004783/0.116, allocations: 0.5959 MB / 486 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003232/0.1163, allocations: 239.4 kB / 486.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/0.1166, allocations: 215 kB / 486.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.1168, allocations: 254.7 kB / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.767e-05/0.1169, allocations: 36 kB / 486.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.172e-05/0.117, allocations: 36 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.775e-05/0.117, allocations: 99.55 kB / 486.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.1172, allocations: 266.5 kB / 487.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004813/0.1177, allocations: 0.6657 MB / 487.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1177, allocations: 0 / 487.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1178, allocations: 0 / 487.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.1178, allocations: 0 / 487.8 MB, free: 13.15 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.001214/0.119, allocations: 0.8338 MB / 488.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.119, allocations: 12.88 kB / 488.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.536e-05/0.1191, allocations: 90.7 kB / 488.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.237e-05/0.1192, allocations: 60.28 kB / 488.8 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.1197, allocations: 411.5 kB / 489.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.1197, allocations: 33.38 kB / 489.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.166e-05/0.1198, allocations: 52.22 kB / 489.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007251/0.1205, allocations: 459.1 kB / 489.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1206, allocations: 7.922 kB / 489.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.1206, allocations: 20 kB / 489.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.1206, allocations: 12 kB / 489.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005728/0.1212, allocations: 303.8 kB / 490.1 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.1234, allocations: 1.661 MB / 491.7 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007653/0.1242, allocations: 387.5 kB / 492.1 MB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.1244, allocations: 116.8 kB / 492.2 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.1244, allocations: 7.984 kB / 492.2 MB, free: 8.496 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.1245, allocations: 34.56 kB / 492.3 MB, free: 8.453 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.1245, allocations: 0 / 492.3 MB, free: 8.453 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001555/0.126, allocations: 0.8926 MB / 493.1 MB, free: 7.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.1261, allocations: 55.41 kB / 493.2 MB, free: 7.418 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004053/0.1265, allocations: 397.7 kB / 493.6 MB, free: 7.023 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.1265, allocations: 25.7 kB / 493.6 MB, free: 6.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.1267, allocations: 279.8 kB / 493.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.163e-05/0.1267, allocations: 86.75 kB / 494 MB, free: 6.629 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.196e-05/0.1268, allocations: 65.61 kB / 494 MB, free: 6.559 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.127, allocations: 346.8 kB / 494.4 MB, free: 6.211 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.1272, allocations: 104.8 kB / 494.5 MB, free: 6.105 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.1274, allocations: 150.6 kB / 494.6 MB, free: 5.934 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004044/0.1278, allocations: 259.2 kB / 494.9 MB, free: 5.656 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1278, allocations: 96 / 494.9 MB, free: 5.656 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005833/0.1284, allocations: 358.2 kB / 495.2 MB, free: 5.297 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.1284, allocations: 4 kB / 495.2 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1284, allocations: 4.219 kB / 495.2 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001304/0.1286, allocations: 28.84 kB / 495.3 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.1289, allocations: 67.91 kB / 495.3 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009064/0.1298, allocations: 1.285 MB / 496.6 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.13, allocations: 15.98 kB / 496.6 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.13, allocations: 12 kB / 496.6 MB, free: 3.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002725/0.1303, allocations: 204.3 kB / 496.8 MB, free: 3.543 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001797/0.1305, allocations: 156.9 kB / 497 MB, free: 3.363 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003231/0.1308, allocations: 239.6 kB / 497.2 MB, free: 3.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.705e-06/0.1308, allocations: 3.938 kB / 497.2 MB, free: 3.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005018/0.1313, allocations: 330.2 kB / 497.6 MB, free: 2.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.268e-06/0.1314, allocations: 6.656 kB / 497.6 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.1314, allocations: 4 kB / 497.6 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.619e-05/0.1314, allocations: 24.84 kB / 497.6 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.1317, allocations: 67.91 kB / 497.7 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007821/0.1325, allocations: 1.284 MB / 498.9 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.1327, allocations: 12 kB / 499 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.1327, allocations: 12 kB / 499 MB, free: 1.227 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.000119/0.1328, allocations: 200.3 kB / 499.2 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.311e-05/0.1329, allocations: 35.53 kB / 499.2 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.071e-05/0.133, allocations: 47.5 kB / 499.2 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.133, allocations: 3.938 kB / 499.2 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.133, allocations: 4 kB / 499.2 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.133, allocations: 3.984 kB / 499.3 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.1341, allocations: 0.8491 MB / 0.4884 GB, free: 12 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1341, allocations: 4 kB / 0.4884 GB, free: 8 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.1344, allocations: 51.91 kB / 0.4884 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.321e-05/0.1345, allocations: 20.84 kB / 0.4885 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.1345, allocations: 8 kB / 0.4885 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007885/0.1353, allocations: 1.284 MB / 0.4897 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1353, allocations: 160 / 0.4897 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006867/0.136, allocations: 488.8 kB / 0.4902 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.335e-05/0.1361, allocations: 116.7 kB / 0.4903 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.581e-05/0.1362, allocations: 15.94 kB / 0.4903 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.1364, allocations: 15.98 kB / 0.4903 GB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.1365, allocations: 19.97 kB / 0.4903 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.1365, allocations: 4 kB / 0.4903 GB, free: 13.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002855/0.1368, allocations: 287.2 kB / 0.4906 GB, free: 13.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1368, allocations: 0 / 0.4906 GB, free: 13.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005348/0.1373, allocations: 143.9 kB / 0.4908 GB, free: 13.4 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.000954/0.1383, allocations: 1.023 MB / 0.4918 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009292/0.1392, allocations: 0.5915 MB / 0.4923 GB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.1392, allocations: 0 / 0.4923 GB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00031/0.1396, allocations: 222.6 kB / 0.4925 GB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005633/0.1401, allocations: 72.52 kB / 0.4926 GB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005067/0.1452, allocations: 4.212 MB / 0.4967 GB, free: 7.066 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.1456, allocations: 0.8347 MB / 0.4975 GB, free: 6.203 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001793/0.1458, allocations: 47.25 kB / 0.4976 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002149/0.146, allocations: 171.3 kB / 0.4977 GB, free: 5.992 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.146, allocations: 0 / 0.4977 GB, free: 5.992 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1981/0.3441, allocations: 7.876 MB / 0.5054 GB, free: 40.73 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/0.3443, allocations: 229.2 kB / 0.5057 GB, free: 40.47 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.006/2.35, allocations: 0 / 0.5057 GB, free: 40.47 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)