Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_SpeedControlled,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001351/0.001351, 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: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2212/0.2212, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002409/0.002409, allocations: 81.23 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1099, allocations: 62.45 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006584/0.1165, allocations: 4.548 MB / 484.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003045/0.1196, allocations: 1.647 MB / 486.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004005/0.1201, allocations: 19.94 kB / 486.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008074/0.1209, allocations: 306.1 kB / 486.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003955/0.1213, allocations: 154.6 kB / 486.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005259/0.1219, allocations: 279.6 kB / 487.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008828/0.1227, allocations: 0.8382 MB / 488 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005454/0.1233, allocations: 386.2 kB / 488.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004008/0.1237, allocations: 310.7 kB / 488.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003565/0.1241, allocations: 342.2 kB / 489 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1242, allocations: 80 kB / 489.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.1243, allocations: 84 kB / 489.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001425/0.1245, allocations: 167.3 kB / 489.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000333/0.1248, allocations: 374 kB / 489.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000874/0.1257, allocations: 0.8993 MB / 490.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1257, allocations: 0 / 490.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.094e-06/0.1257, allocations: 4 kB / 490.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.1257, allocations: 0 / 490.6 MB, free: 10.7 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001661/0.1274, allocations: 1.017 MB / 491.6 MB, free: 9.629 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.1274, allocations: 12.03 kB / 491.6 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001158/0.1276, allocations: 98.69 kB / 491.7 MB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.1277, allocations: 91.91 kB / 491.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006995/0.1284, allocations: 493.5 kB / 492.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.1285, allocations: 41.69 kB / 492.3 MB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.532e-05/0.1286, allocations: 64.38 kB / 492.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.1296, allocations: 0.599 MB / 493 MB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.1296, allocations: 3.906 kB / 493 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.965e-05/0.1297, allocations: 24 kB / 493 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.1297, allocations: 16 kB / 493 MB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008599/0.1305, allocations: 424.9 kB / 493.4 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00321/0.1338, allocations: 2.16 MB / 495.6 MB, free: 5.461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.135, allocations: 0.5594 MB / 496.2 MB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000338/0.1354, allocations: 166.8 kB / 496.3 MB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.1354, allocations: 4 kB / 496.3 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.1355, allocations: 38.56 kB / 496.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.994e-06/0.1355, allocations: 0 / 496.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002402/0.1379, allocations: 1.146 MB / 497.5 MB, free: 3.422 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.1379, allocations: 55.41 kB / 497.6 MB, free: 3.355 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007139/0.1387, allocations: 0.5106 MB / 498.1 MB, free: 2.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/0.1387, allocations: 37.64 kB / 498.1 MB, free: 2.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002967/0.139, allocations: 352.1 kB / 498.5 MB, free: 2.445 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.1391, allocations: 114.2 kB / 498.6 MB, free: 2.332 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.1393, allocations: 82.12 kB / 498.7 MB, free: 2.246 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002159/0.1395, allocations: 358.8 kB / 499 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00032/0.1398, allocations: 146.5 kB / 499.1 MB, free: 1.742 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000374/0.1402, allocations: 224.8 kB / 499.4 MB, free: 1.488 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006641/0.1409, allocations: 367.9 kB / 499.7 MB, free: 1.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1409, allocations: 4 kB / 499.7 MB, free: 1.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009913/0.1419, allocations: 477.4 kB / 0.4885 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.1419, allocations: 8 kB / 0.4885 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.1419, allocations: 0 / 0.4885 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000201/0.1422, allocations: 24.86 kB / 0.4885 GB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004647/0.1426, allocations: 103.8 kB / 0.4886 GB, free: 492 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.1441, allocations: 1.388 MB / 0.49 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003272/0.1444, allocations: 23.98 kB / 0.49 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.738e-05/0.1445, allocations: 12 kB / 0.49 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004803/0.145, allocations: 257 kB / 0.4902 GB, free: 14.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002938/0.1453, allocations: 207 kB / 0.4904 GB, free: 14.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005089/0.1458, allocations: 328 kB / 0.4907 GB, free: 14.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.693e-06/0.1458, allocations: 0 / 0.4907 GB, free: 14.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.000751/0.1466, allocations: 449.9 kB / 0.4912 GB, free: 13.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.1466, allocations: 4 kB / 0.4912 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1466, allocations: 4 kB / 0.4912 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001105/0.1467, allocations: 29.19 kB / 0.4912 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.1471, allocations: 95.83 kB / 0.4913 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.1482, allocations: 1.375 MB / 0.4926 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/0.1485, allocations: 23.92 kB / 0.4927 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.1485, allocations: 12 kB / 0.4927 GB, free: 11.94 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0002128/0.1487, allocations: 210 kB / 0.4929 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.874e-05/0.1488, allocations: 59.34 kB / 0.4929 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001318/0.149, allocations: 57.22 kB / 0.493 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.149, allocations: 4 kB / 0.493 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.149, allocations: 3.938 kB / 0.493 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.149, allocations: 0 / 0.493 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.1507, allocations: 1.063 MB / 0.494 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1508, allocations: 0 / 0.494 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003419/0.1511, allocations: 72.02 kB / 0.4941 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.812e-05/0.1512, allocations: 28.78 kB / 0.4941 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.1512, allocations: 8 kB / 0.4941 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.1523, allocations: 1.386 MB / 0.4955 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1523, allocations: 4.031 kB / 0.4955 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.1534, allocations: 0.6306 MB / 0.4961 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.1536, allocations: 140.4 kB / 0.4962 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.75e-05/0.1537, allocations: 4 kB / 0.4963 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.1539, allocations: 27.98 kB / 0.4963 GB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.855e-05/0.154, allocations: 19.91 kB / 0.4963 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.154, allocations: 15.98 kB / 0.4963 GB, free: 7.961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004755/0.1545, allocations: 366.9 kB / 0.4967 GB, free: 7.605 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1545, allocations: 0 / 0.4967 GB, free: 7.605 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007089/0.1553, allocations: 180 kB / 0.4968 GB, free: 7.43 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.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 (32): * Single equations (assignments): 31 * 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.001426/0.1567, allocations: 1.164 MB / 0.498 GB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.1582, allocations: 0.7587 MB / 0.4987 GB, free: 5.441 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1582, allocations: 1.125 kB / 0.4987 GB, free: 5.441 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004834/0.1587, allocations: 286.5 kB / 0.499 GB, free: 5.148 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006938/0.1594, allocations: 107.6 kB / 0.4991 GB, free: 5.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1968/0.3562, allocations: 5.142 MB / 0.5041 GB, free: 40.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00051/0.3568, allocations: 0.8885 MB / 0.505 GB, free: 40.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003921/0.3572, allocations: 66.94 kB / 0.505 GB, free: 40.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003353/0.3576, allocations: 226.5 kB / 0.5053 GB, free: 40.23 MB / 382.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3576, allocations: 0 / 0.5053 GB, free: 40.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0469/0.4045, allocations: 10.89 MB / 0.5159 GB, free: 38.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.46, allocations: 8.406 kB / 0.5159 GB, free: 38.09 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)