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.001134/0.001134, 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.001216/0.001216, 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.328/1.328, 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.2005/0.2005, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 74.19 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09499/0.09642, allocations: 62.44 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005757/0.1022, allocations: 4.024 MB / 484.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002917/0.1052, allocations: 1.499 MB / 485.6 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004698/0.1057, allocations: 11.94 kB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007943/0.1065, allocations: 262.5 kB / 485.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004495/0.107, allocations: 138.8 kB / 486.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005345/0.1075, allocations: 191.7 kB / 486.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009413/0.1085, allocations: 0.6311 MB / 486.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006097/0.1091, allocations: 264.2 kB / 487.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006024/0.1097, allocations: 239 kB / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004556/0.1102, allocations: 262.7 kB / 487.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.1103, allocations: 60 kB / 487.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.1105, allocations: 60 kB / 487.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.1106, allocations: 139.5 kB / 487.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003627/0.111, allocations: 290.5 kB / 488.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007836/0.1118, allocations: 0.689 MB / 488.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1118, allocations: 0 / 488.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1118, allocations: 0 / 488.8 MB, free: 12.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.739e-05/0.1119, allocations: 0 / 488.8 MB, free: 12.42 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.001682/0.1135, allocations: 0.8377 MB / 489.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1136, allocations: 8.031 kB / 489.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001188/0.1137, allocations: 90.7 kB / 489.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.1139, allocations: 60.28 kB / 489.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005795/0.1144, allocations: 415.5 kB / 490.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.1145, allocations: 33.38 kB / 490.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-05/0.1146, allocations: 48.28 kB / 490.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000799/0.1154, allocations: 459.1 kB / 490.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.1154, allocations: 0 / 490.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.459e-05/0.1155, allocations: 27.97 kB / 490.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.1155, allocations: 12 kB / 490.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006125/0.1161, allocations: 303.8 kB / 491.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002434/0.1185, allocations: 1.669 MB / 492.8 MB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008578/0.1194, allocations: 387.5 kB / 493.2 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.1197, allocations: 112.8 kB / 493.3 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.1197, allocations: 4 kB / 493.3 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.1197, allocations: 34.56 kB / 493.3 MB, free: 7.715 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1197, allocations: 0 / 493.3 MB, free: 7.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001655/0.1214, allocations: 0.8917 MB / 494.2 MB, free: 6.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.1214, allocations: 55.34 kB / 494.2 MB, free: 6.684 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004247/0.1219, allocations: 397.7 kB / 494.6 MB, free: 6.293 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.1219, allocations: 29.7 kB / 494.7 MB, free: 6.258 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.1221, allocations: 279.8 kB / 494.9 MB, free: 5.977 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.442e-05/0.1222, allocations: 90.73 kB / 495 MB, free: 5.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/0.1223, allocations: 57.61 kB / 495.1 MB, free: 5.824 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1224, allocations: 350.8 kB / 495.4 MB, free: 5.473 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.1226, allocations: 92.81 kB / 495.5 MB, free: 5.379 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.1229, allocations: 162.6 kB / 495.7 MB, free: 5.195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004498/0.1233, allocations: 254.7 kB / 495.9 MB, free: 4.922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1234, allocations: 0 / 495.9 MB, free: 4.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006441/0.124, allocations: 357.8 kB / 496.3 MB, free: 4.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.124, allocations: 4 kB / 496.3 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1241, allocations: 4 kB / 496.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001379/0.1242, allocations: 24.84 kB / 496.3 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.1245, allocations: 64.09 kB / 496.4 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.1256, allocations: 1.391 MB / 497.8 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.1258, allocations: 19.86 kB / 497.8 MB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.1258, allocations: 19.94 kB / 497.8 MB, free: 2.895 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002914/0.1261, allocations: 204.3 kB / 498 MB, free: 2.691 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001846/0.1263, allocations: 141 kB / 498.1 MB, free: 2.527 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000353/0.1267, allocations: 243.8 kB / 498.4 MB, free: 2.262 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.1267, allocations: 3.984 kB / 498.4 MB, free: 2.258 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005423/0.1272, allocations: 333.9 kB / 498.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.1273, allocations: 8 kB / 498.7 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.945e-06/0.1273, allocations: 0 / 498.7 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.048e-05/0.1274, allocations: 24.84 kB / 498.7 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.1276, allocations: 67.91 kB / 498.8 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009242/0.1285, allocations: 1.379 MB / 0.4885 GB, free: 312 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/0.1287, allocations: 12.16 kB / 0.4885 GB, free: 300 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.1288, allocations: 12 kB / 0.4885 GB, free: 288 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.0001914/0.129, allocations: 203.5 kB / 0.4887 GB, free: 80 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.949e-05/0.129, allocations: 39.53 kB / 0.4887 GB, free: 40 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.62e-05/0.1291, allocations: 43.58 kB / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1291, allocations: 4 kB / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1292, allocations: 0 / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1292, allocations: 0 / 0.4888 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.1303, allocations: 0.84 MB / 0.4896 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1304, allocations: 4 kB / 0.4896 GB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002579/0.1306, allocations: 59.97 kB / 0.4896 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.348e-05/0.1307, allocations: 28.78 kB / 0.4897 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.1307, allocations: 4 kB / 0.4897 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009123/0.1317, allocations: 1.379 MB / 0.491 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.1317, allocations: 0 / 0.491 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007259/0.1324, allocations: 0.4894 MB / 0.4915 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.212e-05/0.1325, allocations: 112.8 kB / 0.4916 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.32e-05/0.1326, allocations: 8 kB / 0.4916 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.1328, allocations: 19.98 kB / 0.4916 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.1328, allocations: 15.92 kB / 0.4916 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.1329, allocations: 8 kB / 0.4917 GB, free: 12.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002916/0.1332, allocations: 279.2 kB / 0.4919 GB, free: 12.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1332, allocations: 0 / 0.4919 GB, free: 12.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005382/0.1337, allocations: 144 kB / 0.4921 GB, free: 12.36 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.0009754/0.1347, allocations: 1.027 MB / 0.4931 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.1357, allocations: 0.6032 MB / 0.4936 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1357, allocations: 0 / 0.4936 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003249/0.1361, allocations: 241.6 kB / 0.4939 GB, free: 10.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000544/0.1366, allocations: 71.23 kB / 0.4939 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005365/0.142, allocations: 4.018 MB / 0.4979 GB, free: 6.191 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.1425, allocations: 0.8347 MB / 0.4987 GB, free: 5.328 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001879/0.1427, allocations: 43.27 kB / 0.4987 GB, free: 5.281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002225/0.1429, allocations: 167.4 kB / 0.4989 GB, free: 5.117 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1429, allocations: 0 / 0.4989 GB, free: 5.117 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1932/0.3362, allocations: 8.174 MB / 0.5069 GB, free: 40.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.181/9.517, allocations: 1.531 kB / 0.5069 GB, free: 40.9 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)