Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008936/0.0008937, allocations: 197.4 kB / 16.1 MB, free: 5.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.14/1.14, allocations: 226.5 MB / 243.4 MB, free: 8.254 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007426/0.0007426, allocations: 90.69 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2581/0.2581, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002171/0.0002172, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2394, allocations: 62.96 MB / 0.516 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.002897/0.2423, allocations: 3.475 MB / 0.5194 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001634/0.244, allocations: 1.381 MB / 0.5207 GB, free: 33.78 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003317/0.2443, allocations: 15.03 kB / 0.5207 GB, free: 33.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005018/0.2449, allocations: 209.9 kB / 0.5209 GB, free: 33.67 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.2451, allocations: 106.9 kB / 0.521 GB, free: 33.6 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002978/0.2454, allocations: 119 kB / 0.5211 GB, free: 33.53 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004466/0.2459, allocations: 0.5815 MB / 0.5217 GB, free: 33.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002823/0.2462, allocations: 251 kB / 0.5219 GB, free: 33.1 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.2464, allocations: 181.8 kB / 0.5221 GB, free: 33.01 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.2466, allocations: 208.4 kB / 0.5223 GB, free: 32.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.808e-05/0.2467, allocations: 27.09 kB / 0.5223 GB, free: 32.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.687e-05/0.2467, allocations: 24.31 kB / 0.5224 GB, free: 32.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.924e-05/0.2468, allocations: 79.27 kB / 0.5224 GB, free: 32.86 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.2469, allocations: 262.9 kB / 0.5227 GB, free: 32.68 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003039/0.2472, allocations: 0.5347 MB / 0.5232 GB, free: 32.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2473, allocations: 0 / 0.5232 GB, free: 32.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2473, allocations: 0 / 0.5232 GB, free: 32.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.2473, allocations: 0 / 0.5232 GB, free: 32.55 MB / 378.7 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.0009266/0.2482, allocations: 0.7503 MB / 0.5239 GB, free: 31.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.2483, allocations: 14.66 kB / 0.524 GB, free: 31.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.311e-05/0.2483, allocations: 86.19 kB / 0.524 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.897e-05/0.2484, allocations: 62.91 kB / 0.5241 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.2488, allocations: 409.1 kB / 0.5245 GB, free: 31.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.2488, allocations: 40.22 kB / 0.5245 GB, free: 31.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.2489, allocations: 45.12 kB / 0.5246 GB, free: 31.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.2496, allocations: 469.4 kB / 0.525 GB, free: 31.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.2496, allocations: 0 / 0.525 GB, free: 31.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.2496, allocations: 21.31 kB / 0.525 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.2496, allocations: 10.5 kB / 0.525 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005019/0.2501, allocations: 313 kB / 0.5253 GB, free: 31.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.2519, allocations: 1.683 MB / 0.527 GB, free: 30.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007207/0.2527, allocations: 430.3 kB / 0.5274 GB, free: 29.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.2529, allocations: 120.6 kB / 0.5275 GB, free: 29.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.2529, allocations: 2.906 kB / 0.5275 GB, free: 29.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.484e-05/0.2529, allocations: 37.53 kB / 0.5276 GB, free: 29.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.784e-06/0.2529, allocations: 0 / 0.5276 GB, free: 29.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.001314/0.2543, allocations: 0.9226 MB / 0.5285 GB, free: 29.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.694e-05/0.2543, allocations: 54.44 kB / 0.5285 GB, free: 29.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003194/0.2546, allocations: 394.3 kB / 0.5289 GB, free: 28.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.2546, allocations: 32.42 kB / 0.5289 GB, free: 28.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.795e-05/0.2547, allocations: 277.4 kB / 0.5292 GB, free: 28.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.201e-05/0.2548, allocations: 92.11 kB / 0.5293 GB, free: 28.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.239e-05/0.2548, allocations: 4 kB / 0.5293 GB, free: 28.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.276e-05/0.2549, allocations: 349.3 kB / 0.5296 GB, free: 28.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.255, allocations: 97.16 kB / 0.5297 GB, free: 28.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.2552, allocations: 157.6 kB / 0.5298 GB, free: 28.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003475/0.2556, allocations: 272 kB / 0.5301 GB, free: 27.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.2556, allocations: 0 / 0.5301 GB, free: 27.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005008/0.2561, allocations: 360.4 kB / 0.5304 GB, free: 27.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.192e-05/0.2561, allocations: 143.6 kB / 0.5306 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.2562, allocations: 4 kB / 0.5306 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001119/0.2563, allocations: 22.16 kB / 0.5306 GB, free: 27.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.2565, allocations: 84.73 kB / 0.5307 GB, free: 27.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006019/0.2571, allocations: 1.285 MB / 0.5319 GB, free: 26.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.2573, allocations: 20.27 kB / 0.532 GB, free: 26.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.2574, allocations: 13 kB / 0.532 GB, free: 26.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.01e-06/0.2574, allocations: 2.812 kB / 0.532 GB, free: 26.23 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003682/0.2577, allocations: 264.1 kB / 0.5322 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-06/0.2577, allocations: 0 / 0.5322 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.252e-05/0.2578, allocations: 23.94 kB / 0.5323 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.258, allocations: 63.22 kB / 0.5323 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004956/0.2585, allocations: 1.284 MB / 0.5336 GB, free: 24.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.2587, allocations: 10.94 kB / 0.5336 GB, free: 24.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.2587, allocations: 16.59 kB / 0.5336 GB, free: 24.79 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001407/0.2589, allocations: 244.3 kB / 0.5338 GB, free: 24.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.009e-05/0.2589, allocations: 42.8 kB / 0.5339 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.942e-05/0.259, allocations: 42.83 kB / 0.5339 GB, free: 24.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.259, allocations: 2.906 kB / 0.5339 GB, free: 24.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.259, allocations: 7.938 kB / 0.5339 GB, free: 24.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.259, allocations: 2.75 kB / 0.5339 GB, free: 24.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00089/0.2599, allocations: 0.8538 MB / 0.5348 GB, free: 23.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2599, allocations: 6.875 kB / 0.5348 GB, free: 23.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.2601, allocations: 59.09 kB / 0.5348 GB, free: 23.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.334e-05/0.2602, allocations: 19.67 kB / 0.5348 GB, free: 23.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.2602, allocations: 4 kB / 0.5348 GB, free: 23.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005302/0.2608, allocations: 1.279 MB / 0.5361 GB, free: 22.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2608, allocations: 0 / 0.5361 GB, free: 22.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005828/0.2614, allocations: 0.498 MB / 0.5366 GB, free: 22.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.726e-05/0.2614, allocations: 119.2 kB / 0.5367 GB, free: 22.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.528e-05/0.2615, allocations: 7.375 kB / 0.5367 GB, free: 22.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.2617, allocations: 23.41 kB / 0.5367 GB, free: 22.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/0.2617, allocations: 16.36 kB / 0.5367 GB, free: 22.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.2618, allocations: 9.375 kB / 0.5367 GB, free: 22.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002191/0.262, allocations: 278.8 kB / 0.537 GB, free: 22.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.262, allocations: 0 / 0.537 GB, free: 22.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004438/0.2624, allocations: 145.8 kB / 0.5371 GB, free: 22.02 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007095/0.2632, allocations: 1.05 MB / 0.5382 GB, free: 21.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007522/0.2639, allocations: 0.5959 MB / 0.5388 GB, free: 20.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2639, allocations: 0 / 0.5388 GB, free: 20.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002555/0.2642, allocations: 240 kB / 0.539 GB, free: 20.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004727/0.2647, allocations: 60.47 kB / 0.539 GB, free: 20.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003066/0.2677, allocations: 2.75 MB / 0.5417 GB, free: 19.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.268, allocations: 0.8381 MB / 0.5425 GB, free: 18.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.2681, allocations: 169.5 kB / 0.5427 GB, free: 18.26 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2681, allocations: 0 / 0.5427 GB, free: 18.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.774/4.042, allocations: 8.616 MB / 0.5511 GB, free: 16.32 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)