Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 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_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_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.001063/0.001063, allocations: 104.9 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2015/0.2015, allocations: 46.1 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 69.42 kB / 416.9 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.106, allocations: 62.45 MB / 479.4 MB, free: 5.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.005489/0.1115, allocations: 4.551 MB / 483.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.114, allocations: 1.632 MB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002905/0.1143, allocations: 15.94 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006741/0.115, allocations: 258.6 kB / 485.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002862/0.1153, allocations: 123 kB / 486 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000421/0.1157, allocations: 247.7 kB / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000662/0.1164, allocations: 0.7834 MB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004601/0.1169, allocations: 365.8 kB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003198/0.1172, allocations: 270.8 kB / 487.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002838/0.1175, allocations: 314.3 kB / 487.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.502e-05/0.1176, allocations: 48 kB / 488 MB, free: 13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.37e-05/0.1177, allocations: 44 kB / 488 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.1178, allocations: 135.3 kB / 488.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002636/0.118, allocations: 342 kB / 488.5 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006422/0.1187, allocations: 0.8642 MB / 489.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1187, allocations: 0 / 489.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1187, allocations: 4 kB / 489.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.1187, allocations: 4 kB / 489.3 MB, free: 11.62 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.001545/0.1203, allocations: 1.017 MB / 490.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.1203, allocations: 8.875 kB / 490.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.1205, allocations: 102.7 kB / 490.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.1206, allocations: 87.91 kB / 490.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005849/0.1212, allocations: 493.5 kB / 491 MB, free: 9.824 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.1212, allocations: 41.69 kB / 491.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.232e-05/0.1213, allocations: 68.31 kB / 491.1 MB, free: 9.719 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009793/0.1223, allocations: 0.599 MB / 491.7 MB, free: 9.098 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.1223, allocations: 3.906 kB / 491.7 MB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.055e-05/0.1224, allocations: 24 kB / 491.8 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.1224, allocations: 16 kB / 491.8 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008293/0.1232, allocations: 425 kB / 492.2 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002871/0.1261, allocations: 2.16 MB / 494.4 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.1272, allocations: 0.5587 MB / 494.9 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003584/0.1276, allocations: 164.8 kB / 495.1 MB, free: 5.617 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.1276, allocations: 8 kB / 495.1 MB, free: 5.609 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.1277, allocations: 38.56 kB / 495.1 MB, free: 5.562 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.174e-06/0.1277, allocations: 0 / 495.1 MB, free: 5.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.00224/0.13, allocations: 1.137 MB / 496.3 MB, free: 4.352 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.13, allocations: 59.34 kB / 496.3 MB, free: 4.281 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005621/0.1306, allocations: 0.5183 MB / 496.8 MB, free: 3.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.1306, allocations: 33.7 kB / 496.9 MB, free: 3.719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/0.1308, allocations: 352.1 kB / 497.2 MB, free: 3.367 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.525e-05/0.1309, allocations: 114.2 kB / 497.3 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.131, allocations: 78.12 kB / 497.4 MB, free: 3.172 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1312, allocations: 358.8 kB / 497.7 MB, free: 2.812 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.1315, allocations: 150.5 kB / 497.9 MB, free: 2.664 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003406/0.1319, allocations: 216.9 kB / 498.1 MB, free: 2.418 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006313/0.1325, allocations: 367.9 kB / 498.5 MB, free: 2.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-06/0.1325, allocations: 0 / 498.5 MB, free: 2.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008573/0.1334, allocations: 485.2 kB / 498.9 MB, free: 1.543 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.1334, allocations: 8 kB / 498.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1334, allocations: 3.938 kB / 499 MB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001432/0.1336, allocations: 25.14 kB / 499 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004123/0.134, allocations: 107.8 kB / 499.1 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009666/0.135, allocations: 1.281 MB / 0.4886 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.1353, allocations: 23.98 kB / 0.4887 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.1353, allocations: 16 kB / 0.4887 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003972/0.1357, allocations: 257 kB / 0.4889 GB, free: 15.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002612/0.136, allocations: 207 kB / 0.4891 GB, free: 15.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004699/0.1364, allocations: 336 kB / 0.4894 GB, free: 15.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.703e-06/0.1365, allocations: 0 / 0.4894 GB, free: 15.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0006889/0.1371, allocations: 446 kB / 0.4899 GB, free: 14.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.1372, allocations: 4 kB / 0.4899 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.1372, allocations: 4 kB / 0.4899 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.282e-05/0.1373, allocations: 29.12 kB / 0.4899 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003486/0.1376, allocations: 91.84 kB / 0.49 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008321/0.1385, allocations: 1.288 MB / 0.4912 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002191/0.1387, allocations: 16 kB / 0.4913 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.1387, allocations: 12 kB / 0.4913 GB, free: 13.06 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.0001426/0.1389, allocations: 204.1 kB / 0.4915 GB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.081e-05/0.139, allocations: 55.33 kB / 0.4915 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.1391, allocations: 57.3 kB / 0.4916 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.1391, allocations: 8.094 kB / 0.4916 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1391, allocations: 0 / 0.4916 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.1391, allocations: 3.984 kB / 0.4916 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.1407, allocations: 1.061 MB / 0.4926 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1407, allocations: 0 / 0.4926 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.1411, allocations: 75.89 kB / 0.4927 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.952e-05/0.1412, allocations: 20.84 kB / 0.4927 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.1412, allocations: 15.88 kB / 0.4927 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008131/0.142, allocations: 1.288 MB / 0.494 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.142, allocations: 160 / 0.494 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.143, allocations: 0.6341 MB / 0.4946 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.1432, allocations: 136.3 kB / 0.4947 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.764e-05/0.1432, allocations: 8 kB / 0.4947 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.1435, allocations: 23.97 kB / 0.4948 GB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.718e-05/0.1436, allocations: 23.97 kB / 0.4948 GB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.1436, allocations: 4 kB / 0.4948 GB, free: 9.211 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004131/0.144, allocations: 370.9 kB / 0.4951 GB, free: 8.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.144, allocations: 0 / 0.4951 GB, free: 8.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006249/0.1447, allocations: 180 kB / 0.4953 GB, free: 8.676 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.00127/0.1459, allocations: 1.175 MB / 0.4965 GB, free: 7.461 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.1472, allocations: 0.744 MB / 0.4972 GB, free: 6.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1472, allocations: 4.062 kB / 0.4972 GB, free: 6.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004169/0.1477, allocations: 270.5 kB / 0.4974 GB, free: 6.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007076/0.1484, allocations: 102.1 kB / 0.4975 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00717/0.1556, allocations: 5.391 MB / 0.5028 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.185/0.3406, allocations: 0.8869 MB / 0.5037 GB, free: 41.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000352/0.341, allocations: 60.02 kB / 0.5037 GB, free: 41.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002837/0.3413, allocations: 227.4 kB / 0.504 GB, free: 41.22 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3413, allocations: 1.031 kB / 0.504 GB, free: 41.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04717/0.3885, allocations: 10.48 MB / 0.5142 GB, free: 39.38 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001476/0.3887, allocations: 233.4 kB / 0.5144 GB, free: 39.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.074/2.463, allocations: 0 / 0.5144 GB, free: 39.12 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)