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.001041/0.001041, allocations: 93.45 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001446, allocations: 201.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 227.8 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1863/0.1863, allocations: 46.19 MB / 345.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002282/0.0002282, allocations: 8.281 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.09542, allocations: 63.57 MB / 483.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.003722/0.09917, allocations: 3.641 MB / 486.8 MB, free: 420 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.101, allocations: 1.456 MB / 488.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001922/0.1012, allocations: 11.94 kB / 488.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005254/0.1017, allocations: 234.8 kB / 488.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.102, allocations: 111.2 kB / 488.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.1023, allocations: 171.8 kB / 488.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005099/0.1028, allocations: 0.592 MB / 489.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003269/0.1032, allocations: 239.4 kB / 489.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.1034, allocations: 187 kB / 489.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.1036, allocations: 214.8 kB / 490 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.411e-05/0.1037, allocations: 28 kB / 490 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.591e-05/0.1037, allocations: 28 kB / 490.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.626e-05/0.1038, allocations: 87.5 kB / 490.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.104, allocations: 272.2 kB / 490.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004656/0.1045, allocations: 0.6421 MB / 491.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1045, allocations: 0 / 491.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1045, allocations: 0 / 491.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.1045, allocations: 0 / 491.1 MB, free: 12.14 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.00101/0.1055, allocations: 0.7482 MB / 491.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.1056, allocations: 12.88 kB / 491.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.345e-05/0.1056, allocations: 86.7 kB / 491.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.067e-05/0.1057, allocations: 60.19 kB / 492 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.1062, allocations: 411.5 kB / 492.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.1062, allocations: 29.38 kB / 492.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.643e-05/0.1063, allocations: 52.36 kB / 492.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007302/0.107, allocations: 463.1 kB / 492.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.107, allocations: 7.906 kB / 492.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.1071, allocations: 16 kB / 492.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.1071, allocations: 12 kB / 492.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005951/0.1077, allocations: 327.8 kB / 493.3 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.1098, allocations: 1.681 MB / 494.9 MB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008515/0.1107, allocations: 431.4 kB / 495.4 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002265/0.111, allocations: 128.8 kB / 495.5 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.111, allocations: 0 / 495.5 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.111, allocations: 34.56 kB / 495.5 MB, free: 7.445 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.163e-06/0.111, allocations: 0 / 495.5 MB, free: 7.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001558/0.1126, allocations: 0.9239 MB / 496.4 MB, free: 6.445 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.1126, allocations: 59.34 kB / 496.5 MB, free: 6.375 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.113, allocations: 389.7 kB / 496.9 MB, free: 5.988 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.1131, allocations: 29.7 kB / 496.9 MB, free: 5.953 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.1132, allocations: 283.8 kB / 497.2 MB, free: 5.672 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.334e-05/0.1133, allocations: 90.66 kB / 497.3 MB, free: 5.582 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.565e-05/0.1134, allocations: 33.8 kB / 497.3 MB, free: 5.543 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1135, allocations: 354.7 kB / 497.7 MB, free: 5.188 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.1137, allocations: 95.95 kB / 497.7 MB, free: 5.094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.1139, allocations: 158.8 kB / 497.9 MB, free: 4.914 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004331/0.1144, allocations: 267.2 kB / 498.2 MB, free: 4.629 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1144, allocations: 0 / 498.2 MB, free: 4.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006208/0.115, allocations: 370.4 kB / 498.5 MB, free: 4.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.909e-05/0.1151, allocations: 141.3 kB / 498.7 MB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1151, allocations: 4 kB / 498.7 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001186/0.1152, allocations: 24.84 kB / 498.7 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.1155, allocations: 67.91 kB / 498.8 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000847/0.1164, allocations: 1.289 MB / 0.4883 GB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.1166, allocations: 24.08 kB / 0.4884 GB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.1166, allocations: 12 kB / 0.4884 GB, free: 2.539 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.47e-06/0.1166, allocations: 4 kB / 0.4884 GB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004364/0.117, allocations: 260.8 kB / 0.4886 GB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-06/0.1171, allocations: 4.062 kB / 0.4886 GB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.918e-05/0.1171, allocations: 24.84 kB / 0.4886 GB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.1174, allocations: 71.84 kB / 0.4887 GB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007595/0.1182, allocations: 1.288 MB / 0.49 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.1183, allocations: 11.94 kB / 0.49 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.1183, allocations: 11.94 kB / 0.49 GB, free: 0.7344 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.0001838/0.1185, allocations: 245.4 kB / 0.4902 GB, free: 496 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.1186, allocations: 39.53 kB / 0.4903 GB, free: 456 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.203e-05/0.1187, allocations: 47.5 kB / 0.4903 GB, free: 404 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1187, allocations: 7.938 kB / 0.4903 GB, free: 396 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1187, allocations: 3.938 kB / 0.4903 GB, free: 392 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1187, allocations: 0 / 0.4903 GB, free: 392 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.1198, allocations: 0.8551 MB / 0.4912 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1198, allocations: 0 / 0.4912 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.1201, allocations: 59.97 kB / 0.4912 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.95e-05/0.1202, allocations: 20.84 kB / 0.4912 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.1202, allocations: 8 kB / 0.4912 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007622/0.121, allocations: 1.288 MB / 0.4925 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.121, allocations: 0 / 0.4925 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007132/0.1217, allocations: 0.5013 MB / 0.493 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.692e-05/0.1218, allocations: 116.7 kB / 0.4931 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.288e-05/0.1219, allocations: 15.97 kB / 0.4931 GB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.1221, allocations: 19.92 kB / 0.4931 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.1221, allocations: 15.98 kB / 0.4931 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.1221, allocations: 12.12 kB / 0.4932 GB, free: 13.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002782/0.1224, allocations: 283.2 kB / 0.4934 GB, free: 12.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1224, allocations: 0 / 0.4934 GB, free: 12.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005077/0.1229, allocations: 147.9 kB / 0.4936 GB, free: 12.81 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.0009395/0.1239, allocations: 1.034 MB / 0.4946 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009302/0.1248, allocations: 0.6114 MB / 0.4952 GB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1248, allocations: 0 / 0.4952 GB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000319/0.1252, allocations: 226.6 kB / 0.4954 GB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005426/0.1257, allocations: 72.78 kB / 0.4955 GB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005285/0.131, allocations: 4.336 MB / 0.4997 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004172/0.1315, allocations: 0.8347 MB / 0.5005 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001709/0.1316, allocations: 47.23 kB / 0.5006 GB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.1318, allocations: 171.4 kB / 0.5007 GB, free: 5.234 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1319, allocations: 0 / 0.5007 GB, free: 5.234 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1879/0.3198, allocations: 7.723 MB / 0.5083 GB, free: 38.2 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001312/0.32, allocations: 231.4 kB / 0.5085 GB, free: 37.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.832/2.152, allocations: 0 / 0.5085 GB, free: 37.95 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)