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.001274/0.001274, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1994/0.1994, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 76.44 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1093, allocations: 62.44 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005413/0.1147, allocations: 4.023 MB / 484.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.117, allocations: 1.499 MB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002442/0.1173, allocations: 12 kB / 485.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006187/0.1179, allocations: 262.5 kB / 485.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002537/0.1182, allocations: 138.8 kB / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003723/0.1186, allocations: 183.7 kB / 486.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005546/0.1191, allocations: 0.635 MB / 486.9 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004039/0.1195, allocations: 276.2 kB / 487.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002877/0.1198, allocations: 239 kB / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.1201, allocations: 254.8 kB / 487.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.047e-05/0.1202, allocations: 64 kB / 487.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.591e-05/0.1203, allocations: 60 kB / 487.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.263e-05/0.1204, allocations: 135.5 kB / 487.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.1206, allocations: 290.5 kB / 488.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005379/0.1211, allocations: 0.6891 MB / 488.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1211, allocations: 0 / 488.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1211, allocations: 0 / 488.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1212, allocations: 4 kB / 488.8 MB, free: 12.43 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.001185/0.1223, allocations: 0.8337 MB / 489.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1224, allocations: 12.03 kB / 489.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.791e-05/0.1225, allocations: 94.64 kB / 489.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.07e-05/0.1226, allocations: 60.22 kB / 489.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004477/0.123, allocations: 403.5 kB / 490.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.1231, allocations: 37.38 kB / 490.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.927e-05/0.1232, allocations: 56.27 kB / 490.3 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000711/0.1239, allocations: 451.1 kB / 490.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.1239, allocations: 11.94 kB / 490.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.1239, allocations: 20 kB / 490.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.124, allocations: 8 kB / 490.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005732/0.1245, allocations: 299.8 kB / 491.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.1267, allocations: 1.669 MB / 492.8 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000831/0.1275, allocations: 386 kB / 493.1 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/0.1278, allocations: 120.8 kB / 493.3 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.1278, allocations: 4 kB / 493.3 MB, free: 7.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.1278, allocations: 42.56 kB / 493.3 MB, free: 7.719 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.1278, allocations: 0 / 493.3 MB, free: 7.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001551/0.1294, allocations: 0.889 MB / 494.2 MB, free: 6.758 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.1294, allocations: 55.41 kB / 494.3 MB, free: 6.691 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004065/0.1298, allocations: 393.7 kB / 494.6 MB, free: 6.305 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.1299, allocations: 29.7 kB / 494.7 MB, free: 6.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.1301, allocations: 279.8 kB / 494.9 MB, free: 5.988 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.706e-05/0.1301, allocations: 94.73 kB / 495 MB, free: 5.895 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.879e-05/0.1303, allocations: 57.61 kB / 495.1 MB, free: 5.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1304, allocations: 350.8 kB / 495.4 MB, free: 5.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.1306, allocations: 96.81 kB / 495.5 MB, free: 5.383 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.1308, allocations: 154.6 kB / 495.7 MB, free: 5.207 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004402/0.1313, allocations: 254.7 kB / 495.9 MB, free: 4.934 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1313, allocations: 4 kB / 495.9 MB, free: 4.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006079/0.1319, allocations: 353.7 kB / 496.3 MB, free: 4.574 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1319, allocations: 12.22 kB / 496.3 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1319, allocations: 0 / 496.3 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001282/0.1321, allocations: 24.84 kB / 496.3 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/0.1324, allocations: 71.91 kB / 496.4 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009986/0.1334, allocations: 1.376 MB / 497.8 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.1336, allocations: 24.11 kB / 497.8 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.1336, allocations: 12 kB / 497.8 MB, free: 2.914 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002708/0.1339, allocations: 204.3 kB / 498 MB, free: 2.711 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001917/0.1341, allocations: 148.9 kB / 498.1 MB, free: 2.539 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003456/0.1345, allocations: 243.8 kB / 498.4 MB, free: 2.273 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.814e-06/0.1345, allocations: 4.094 kB / 498.4 MB, free: 2.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.000523/0.135, allocations: 329.7 kB / 498.7 MB, free: 1.938 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.636e-06/0.135, allocations: 4 kB / 498.7 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.135, allocations: 4 kB / 498.7 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.008e-05/0.1351, allocations: 29.09 kB / 498.7 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.1354, allocations: 63.91 kB / 498.8 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009287/0.1363, allocations: 1.382 MB / 0.4885 GB, free: 324 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.1365, allocations: 8 kB / 0.4885 GB, free: 316 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.1365, allocations: 12 kB / 0.4885 GB, free: 304 kB / 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.0001314/0.1367, allocations: 211.2 kB / 0.4887 GB, free: 88 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.624e-05/0.1367, allocations: 35.53 kB / 0.4887 GB, free: 52 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.1368, allocations: 51.52 kB / 0.4888 GB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1368, allocations: 3.984 kB / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1369, allocations: 4 kB / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.1369, allocations: 0 / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.1381, allocations: 0.8362 MB / 0.4896 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1381, allocations: 0 / 0.4896 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.1383, allocations: 51.91 kB / 0.4896 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.023e-05/0.1384, allocations: 24.78 kB / 0.4897 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.1384, allocations: 12.06 kB / 0.4897 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009198/0.1394, allocations: 1.371 MB / 0.491 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1394, allocations: 0 / 0.491 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007319/0.1401, allocations: 0.4894 MB / 0.4915 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.15e-05/0.1402, allocations: 116.8 kB / 0.4916 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.348e-05/0.1403, allocations: 4.125 kB / 0.4916 GB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.1405, allocations: 19.98 kB / 0.4916 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/0.1406, allocations: 19.92 kB / 0.4916 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.1406, allocations: 8 kB / 0.4917 GB, free: 12.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002973/0.1409, allocations: 287.2 kB / 0.4919 GB, free: 12.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.344e-06/0.1409, allocations: 0 / 0.4919 GB, free: 12.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005459/0.1415, allocations: 143.9 kB / 0.4921 GB, free: 12.37 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.001033/0.1425, allocations: 1.023 MB / 0.4931 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.1437, allocations: 0.6029 MB / 0.4937 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.1437, allocations: 0 / 0.4937 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003463/0.1441, allocations: 230.5 kB / 0.4939 GB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006382/0.1447, allocations: 91.52 kB / 0.494 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005536/0.1503, allocations: 4.018 MB / 0.4979 GB, free: 6.195 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.1506, allocations: 0.8308 MB / 0.4987 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.1508, allocations: 43.27 kB / 0.4987 GB, free: 5.289 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/0.1511, allocations: 167.4 kB / 0.4989 GB, free: 5.125 MB / 382.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1511, allocations: 0 / 0.4989 GB, free: 5.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2049/0.356, allocations: 8.176 MB / 0.5069 GB, free: 40.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.875/9.232, allocations: 2.25 kB / 0.5069 GB, free: 40.99 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)