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.001653/0.001653, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002065/0.002065, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2026/0.2026, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 76.06 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2781, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005519/0.2837, allocations: 4.028 MB / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002897/0.2866, allocations: 1.488 MB / 0.5359 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004296/0.2871, allocations: 10.31 kB / 0.5359 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007697/0.2879, allocations: 264.8 kB / 0.5361 GB, free: 8.848 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003948/0.2883, allocations: 137.6 kB / 0.5363 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.2888, allocations: 191 kB / 0.5365 GB, free: 8.562 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007874/0.2896, allocations: 0.6433 MB / 0.5371 GB, free: 8.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004351/0.29, allocations: 281.2 kB / 0.5374 GB, free: 7.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000367/0.2904, allocations: 243.5 kB / 0.5376 GB, free: 7.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.2907, allocations: 264 kB / 0.5378 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.426e-05/0.2907, allocations: 61.72 kB / 0.5379 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.806e-05/0.2908, allocations: 65.78 kB / 0.538 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.369e-05/0.2909, allocations: 125.5 kB / 0.5381 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.2912, allocations: 289.1 kB / 0.5384 GB, free: 7.316 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007244/0.2919, allocations: 0.7096 MB / 0.5391 GB, free: 6.762 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2919, allocations: 0 / 0.5391 GB, free: 6.762 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2919, allocations: 0 / 0.5391 GB, free: 6.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.2919, allocations: 4 kB / 0.5391 GB, free: 6.758 MB / 398.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.001269/0.2932, allocations: 0.849 MB / 0.5399 GB, free: 6.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.2933, allocations: 13.19 kB / 0.5399 GB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.419e-05/0.2933, allocations: 85.67 kB / 0.54 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.522e-05/0.2934, allocations: 66.83 kB / 0.54 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000573/0.294, allocations: 412.4 kB / 0.5404 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.2941, allocations: 31.97 kB / 0.5405 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.425e-05/0.2941, allocations: 51.36 kB / 0.5405 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000753/0.2949, allocations: 460.9 kB / 0.541 GB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.2949, allocations: 5.062 kB / 0.541 GB, free: 5.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/0.295, allocations: 16.47 kB / 0.541 GB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.295, allocations: 10.94 kB / 0.541 GB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005839/0.2956, allocations: 305.1 kB / 0.5413 GB, free: 5.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.2978, allocations: 1.671 MB / 0.5429 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008275/0.2987, allocations: 374.3 kB / 0.5433 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.2989, allocations: 121.9 kB / 0.5434 GB, free: 3.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.2989, allocations: 4.281 kB / 0.5434 GB, free: 3.383 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.299, allocations: 32 kB / 0.5434 GB, free: 3.344 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.299, allocations: 7.938 kB / 0.5434 GB, free: 3.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001662/0.3006, allocations: 0.893 MB / 0.5443 GB, free: 2.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.3007, allocations: 57.75 kB / 0.5443 GB, free: 2.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004435/0.3011, allocations: 397 kB / 0.5447 GB, free: 2.348 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.3012, allocations: 35.84 kB / 0.5448 GB, free: 2.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.3013, allocations: 277.3 kB / 0.545 GB, free: 2.059 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.704e-05/0.3014, allocations: 98.25 kB / 0.5451 GB, free: 1.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.799e-05/0.3015, allocations: 58.02 kB / 0.5452 GB, free: 1.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3016, allocations: 355.9 kB / 0.5455 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.3018, allocations: 100.3 kB / 0.5456 GB, free: 1.527 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002412/0.3021, allocations: 157.5 kB / 0.5458 GB, free: 1.406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004177/0.3025, allocations: 250.8 kB / 0.546 GB, free: 1.242 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3025, allocations: 7.938 kB / 0.546 GB, free: 1.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006488/0.3032, allocations: 356.8 kB / 0.5463 GB, free: 1.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.3032, allocations: 6.562 kB / 0.5464 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.3032, allocations: 1.25 kB / 0.5464 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001298/0.3034, allocations: 29.41 kB / 0.5464 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.3037, allocations: 69.59 kB / 0.5465 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000975/0.3046, allocations: 1.385 MB / 0.5478 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.3049, allocations: 15.92 kB / 0.5478 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.3049, allocations: 16 kB / 0.5478 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002702/0.3052, allocations: 204 kB / 0.548 GB, free: 15.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000189/0.3054, allocations: 156.5 kB / 0.5482 GB, free: 15.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003288/0.3057, allocations: 235.6 kB / 0.5484 GB, free: 14.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.452e-06/0.3057, allocations: 0 / 0.5484 GB, free: 14.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005191/0.3062, allocations: 342.4 kB / 0.5487 GB, free: 14.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/0.3063, allocations: 6.188 kB / 0.5487 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.3063, allocations: 4 kB / 0.5487 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.305e-05/0.3063, allocations: 20.84 kB / 0.5488 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.3066, allocations: 67.91 kB / 0.5488 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008791/0.3075, allocations: 1.38 MB / 0.5502 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.3077, allocations: 12.16 kB / 0.5502 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.3077, allocations: 12 kB / 0.5502 GB, free: 12.84 MB / 414.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.0001322/0.3079, allocations: 200.1 kB / 0.5504 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.879e-05/0.3079, allocations: 43.72 kB / 0.5504 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.506e-05/0.308, allocations: 43.5 kB / 0.5505 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.308, allocations: 4 kB / 0.5505 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.308, allocations: 0 / 0.5505 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.308, allocations: 0 / 0.5505 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.3092, allocations: 0.851 MB / 0.5513 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3093, allocations: 0 / 0.5513 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/0.3095, allocations: 51.91 kB / 0.5514 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.653e-05/0.3096, allocations: 32.84 kB / 0.5514 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.3097, allocations: 4 kB / 0.5514 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009042/0.3106, allocations: 1.375 MB / 0.5527 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3106, allocations: 7.969 kB / 0.5527 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007372/0.3113, allocations: 489.6 kB / 0.5532 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.3114, allocations: 120.9 kB / 0.5533 GB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/0.3115, allocations: 4 kB / 0.5533 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.3117, allocations: 15.98 kB / 0.5533 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.3118, allocations: 19.92 kB / 0.5534 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.3118, allocations: 12 kB / 0.5534 GB, free: 9.328 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002957/0.3121, allocations: 279.2 kB / 0.5536 GB, free: 9.059 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3121, allocations: 3.938 kB / 0.5536 GB, free: 9.055 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005646/0.3127, allocations: 144 kB / 0.5538 GB, free: 8.914 MB / 414.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.001013/0.3137, allocations: 1.023 MB / 0.5548 GB, free: 7.855 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.3148, allocations: 0.5947 MB / 0.5554 GB, free: 7.234 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3148, allocations: 0 / 0.5554 GB, free: 7.234 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.3152, allocations: 231.4 kB / 0.5556 GB, free: 6.996 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005651/0.3158, allocations: 86.05 kB / 0.5557 GB, free: 6.918 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005284/0.3211, allocations: 3.95 MB / 0.5595 GB, free: 2.816 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.3215, allocations: 0.8308 MB / 0.5603 GB, free: 1.957 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001737/0.3217, allocations: 47.25 kB / 0.5604 GB, free: 1.914 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.3219, allocations: 163.4 kB / 0.5605 GB, free: 1.754 MB / 414.1 MB Notification: Performance of SimCode: time 1.944e-06/0.3219, allocations: 0 / 0.5605 GB, free: 1.754 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03098/0.3529, allocations: 8.373 MB / 0.5687 GB, free: 9.539 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.773/10.13, allocations: 6.984 kB / 0.5687 GB, free: 9.535 MB / 430.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)